I got a function to change some other field according to the value of the datepicker
$(document).ready(function(){
$('.datepicker').datepicker();
//...
//.....
$(document).on('change','.datepicker',function(){
//.....
})
})
When i click on the field for the first time everything works OK.the panel is showing up and i choose the date.Then when i submit my form and come to create a new object ,i click on the text field and nothing showing up.If i refresh at this point everything works again etc. Any clues?
Datepicker works sometimes and sometimes dont.
I got a function to change some other field according to the value of the datepicker $(document).ready(function(){ $('.datepicker').datepicker(); //... //..... $(document).on('change','.datepicker',function(){ //..... }) }) When i click on the field for the first time everything works OK.the panel is showing up and i choose the date.Then when i submit my form and come to create a new object ,i click on the text field and nothing showing up.If i refresh at this point everything works again etc. Any clues?