Setting focus after Validating Form Items

D

dmedina

I have a form with about 5 or 8 textboxes and all of them
have required field validators...

When I submit the form, if some of this field are empty I
show the Summary msg telling the user which fields need to
be fill.

I would like to put the cursor into the first field that
needs to be fill.

After the Alert Msg shows it never set the cursor, Can
this be done?

I thought about writting a javascript to see which fields
are empty and put the cursor there, but then I would need
to know which ones where pick up by the required field
validator...

Any suggestions...

thanks,
dmedina
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,069
Latest member
SimplyleanKetoReviews

Latest Threads

Top