In a GWT application i’m trying to use this component:
http://keith-wood.name/datepick.html
In their page they explain that we need to use the following jquery function to use it:
$(function() {
$('#popupDatepicker').datepick();
});
<input type="text" id="popupDatepicker">
Due to requirements aplication i can´t use it like described so i use the onClick event like this:
<input type="text" id="popupDatepicker"
onClick="$('#popupDatepicker').datepick();">
In this way, the component is loaded but only on the second click (my first click doesn’t do anying)
Has anyone had this problem?
Thanks a lot.
You should be able to use any selector string to initialize date picker elements on the page. Thus, you could give your
<input>elements a class:and then initialize all of them with: