How I can from client javascript know when one of my
textboxes, Radio Button List, drop down box, etc...
Validated to False when submitting the form.
I can get the page_Isvalid==f alse but i need to know which
control is empty or not selected, so i can put the
cursor...
//Sample code
if (page_Isvalid== false){
if (txt_box1.value .length<1){
document.GetEle mentById('txt_b ox1').Focus()
}
}
The code above works great but I don't now how to approach
when i have a dropdownbox, radioButton list, etc...
Thanks,
dmedina
textboxes, Radio Button List, drop down box, etc...
Validated to False when submitting the form.
I can get the page_Isvalid==f alse but i need to know which
control is empty or not selected, so i can put the
cursor...
//Sample code
if (page_Isvalid== false){
if (txt_box1.value .length<1){
document.GetEle mentById('txt_b ox1').Focus()
}
}
The code above works great but I don't now how to approach
when i have a dropdownbox, radioButton list, etc...
Thanks,
dmedina
Comment