Topic
  • 1 reply
  • Latest Post - ‏2013-01-21T15:21:08Z by SystemAdmin
SystemAdmin
SystemAdmin
1192 Posts

Pinned topic Retain the cursor in input field when the input value is invalid

‏2013-01-17T14:46:02Z |
Hi, The cursor is moving to next input field(HATS functionality). I have a requirement to keep the cursor in the same input field if the input value is not valid.

Please advise how to write Javascript for this.
Updated on 2013-01-21T15:21:08Z at 2013-01-21T15:21:08Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    1192 Posts

    Re: Retain the cursor in input field when the input value is invalid

    ‏2013-01-21T15:21:08Z  
    You can use JavaScript focus() method. If input invalid then InputElementName.focus();

    -Rafay