如何使用JQuery更改文本框中日期选择器的位置
<input type="text" id="Date" name="Date" class='Date'/> Jquery
<script type="text/javascript">
(function ($) {
$('.Date').datepicker();
$('.Date').datepicker('setDate', 'today');
})(jQuery);
</script>此处如何将日期选择器的位置向下更改为左侧,以及如何减小此
发布于 2014-12-31 18:54:42
尝尝这个
$('.Date').datepicker({
beforeShow: function(input, inst)
{
inst.dpDiv.css({marginTop: -input.offsetHeight + 'px', marginLeft: input.offsetWidth + 'px'});
}
});https://stackoverflow.com/questions/27719851
复制相似问题