|
Hi,
I have to validate the controls on the form based on a logic.What i am doing is that based on that logic i create an array of control Ids in my server side which has to be validated and then on the client side i am validating the controls which are in the array.
Can any body tell me how to know the control type(textbox,select...) after i am creating the control by GetElementByID method????
Best Regards
|
|
|
What you can do is use the type property, just like I have used in the following code...
if(frm.elements.type == "checkbox")
There might be "text" for textbox type of controls, as while creating a html input type we give something like...
<input type="text"
Tell me whether it resolves your problem or not.
|
|
|
|
|
|
|
|