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

Comments

Popular posts from this blog

Call PHP Function In JavaScript Using Ajax

List of Post Category Wise in wordpress