Setting focus after Validating Form Items

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • dmedina

    Setting focus after Validating Form Items

    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
Working...