Answer the question
In order to leave comments, you need to log in
Two scripts per form, how?
There is a form, by clicking on it, a calendar in JS pops up:
<input type="text" value="dd-mm-yy" onfocus="this.select();lcs(this)"
onclick="event.cancelBubble=true;this.select();lcs(this)">
Answer the question
In order to leave comments, you need to log in
You don't need an onClick event, but rather an onChange event Better
yet, rewrite everything in a separate file like this
$('.calendar').on('click', function() {
//code..
})
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question