Reputation: 245
How to change the position of date picker in text box using JQuery
<input type="text" id="Date" name="Date" class='Date'/>
Jquery
<script type="text/javascript">
(function ($) {
$('.Date').datepicker();
$('.Date').datepicker('setDate', 'today');
})(jQuery);
</script>
Here how to change the position of date picker down to left side and How to Decrease the height and width in this
Upvotes: 2
Views: 461
Reputation: 1207
$('.Date').datepicker({
beforeShow: function(input, inst)
{
inst.dpDiv.css({marginTop: -input.offsetHeight + 'px', marginLeft: input.offsetWidth + 'px'});
}
});
Upvotes: 1