开发者

Jquery UI Datepicker doesn't load if input has value

开发者 https://www.devze.com 2023-03-24 23:38 出处:网络
I have the following code <script type=\'text/javascript\'> $(function() { $( \"#datepic开发者_开发技巧ker\" ).datepicker({dateFormat:\'yy-mm-dd\'});

I have the following code

<script type='text/javascript'>

$(function() {

    $( "#datepic开发者_开发技巧ker" ).datepicker({dateFormat:'yy-mm-dd'});

});

</script>

<input type='text' id='datepicker' name='date' value='<?php echo $date_from_mysql_query;?>'>

If the field doesn't have any value, the Datepicker loads, if the field is completed, it doesn't load the Datepicker.

How can I solve this?

Thanks


my problem actually was to make the datepicker to load on each tagged via id, instead I used the class attribute and it worked marvelous, as I said 6 hrs ago.

0

精彩评论

暂无评论...
验证码 换一张
取 消