I am creating a Spring application that uses a JavaScript file that implements a date picker. When I first ran the page which contained the date picker I had made a syntax error on the function declaration which I fixed. However on running the application again the JavaScript file is not updating so the version of the file with the error is being run.
If it helps here is the code with the error:
$(function()){
$("#createdTime, #expi").datepicker({
dateFormat: "d-m-yy"
});
}
And here it is fixed:
$(function(){
$("#createdTime, #expiryTime").datepicker({
dateFormat: "dd-mm-yy"
});
});
The slightly different id "expiryTime" is correct according to my HTML.
I think this is an IDE issue but am not 100% sure. I tried to clear the cache but this did not make any difference. If it helps I am using Intellij IDEA 12.1.7.
In my case the problem was in chrome browser behavior. Try Developer Tools(F12) > Network > Disable cache.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With