Hello
I have a java server pages with a form on it that has number of text boxes, hidden texts and some other controls (images, etc).
I have two questions. Could you please help me ?
1. I would like to make one of the buttons on my form the default, so if user presses enter, this button is clicked. How do I do that?
2. The name of text boxes on the form are dynamic. So I need to have a javascript that checks the fields of my form according to their type and then gives message if it is empty. What property should I use to indicate the type of control?
Any tutorials, codes, etc. is extremely appreciated.
Regards
Helen