Problem:
Did you worked with jquery ui date picker? when assigned a default value to text filed, jquery ui datepicker will automatically delete text from that textbox field. So how to stop it?Solution:
It seems the bug in jquery ui datepicker which is automatically delete text from input field. to overcome this problem you need to write 22 lines of code as example below:Example:
// assume that the $edit_diesel_date is already filled with date value.// write this code very bootom of your page.
function dook() { $("#diesel_date").val("<?php echo $edit_diesel_date;?>"); }
setTimeout("dook();", 500);
0 comments:
Post a Comment