View Full Version : JavaScript OnClick event handler.

Apr 9th, 2012, 01:01 PM
hello everyone, i am new to all this..

i need help regarding..

i am generating text box dynamically(mean it's a multiple select box, depending upon the number you select , it will generate that many text field.)

my problem is that i want to assign a calender to the text field generated whenever a user clicks on that text field.

i am able to do it for simple text field

onclick="javascript: showCalendar('idname')"

but how to do it in this case, where can i declare this ?

Apr 9th, 2012, 03:54 PM
Show the HTML layout you are going for and then we can add JS suggestions.

Better yet, show your JS attempts to this point.