<input type='text' id='check_numb' onblur='do()'>
function check_numb () { var Numb = $ ( '# check_numb') Val ();. ! IF ((/ ^. 1 (. 3 |. 4 |. 5 |. 6 |. 7 |. 8 |. 9) \ D {. 9} $ /. Test (Numb))) { $ ( '# check_id'). text ( 'phone number is incorrect, please re-enter') return to false } the else { $ ( '# check_id'). text ( '') return to true }
Function on $ (function ()) outside