2

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

avenet
  • 2,894
  • 1
  • 19
  • 26
meena
  • 245
  • 2
  • 12

1 Answers1

1

Try this

  $('.Date').datepicker({
        beforeShow: function(input, inst)
        {
            inst.dpDiv.css({marginTop: -input.offsetHeight + 'px', marginLeft: input.offsetWidth + 'px'});
        }
    });
Hoja
  • 1,057
  • 1
  • 12
  • 32