獲得onblur 輸入框中的值
阿新 • • 發佈:2018-12-25
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <script language="javascript" type="text/javascript" src="js/validate.js"></script> </head> <body> this is my firt page <form name="form"> <input type="text" id="tag" name="tag" onblur="valLenAndChar(this.value);" /> <input type="text" id="tag1" name="tag1" onblur="valCharAndNum(this.value);" /> <input type="text" id="tag2" name="tag2" onblur="valTextArea(this.value);" /> <input type="text" id="tag3" name="tag3" onblur="valAddress(this.value);" /> <input type="button" name="確認" value="verify" /> </form> </body> </html>