Wednesday, February 8, 2012

how to use focus function javascript

 focu()  function  is use in javascript for focus of input box when you enter any wrong values in inputbox
for example email , mobile number .. etc

example :

when you enter wrong email them your cursor blink on input box

 code : in javascript  document.getElementById('email').focus();

in jquery    $('#email').focus() ;   where email s id of input box

No comments:

Post a Comment

If you Satisfied , Please Leave a comment