html - jQuery .blur doesn't work -


I have 3 Blur and only the first thing works for some reason here is jquery code:

  & lt; Script type = 'text / javascript' & gt; $ (Document) .ready (function () {$ ("# user_name"). Blur (function () {if ($ (this) .val (). Length> 4) {$ ("# usernamecheckbox") Html ("& lt; img src = 'images / checkmark.png' alt = '' / & gt;");} and {$ ("# user nameshexbox"). Html ("& lt; img src = 'image / Xmark.png 'alt =' '/ /) "$ (" #pass "). Blurring (function () {if ($ (this) .val () Length & lt; 4) {$ ("# Html (img src = 'images / xmark.png' alt = '' / /" ");}}); $ (" #backpass "). Blur (function () { If ($ (this) .val ()! = $ ("# Pass"). Val ()) {$ ("#passcheckbox") .html ("& lt; img src = 'images / xmark.png' alt = '' / / Gt; ");} Other {$ (" #passcheckbox "). Html (" & lt; img src = 'images / checkmark.png' alt = '' / />);}}}) ;}); & Lt; / script & gt;  

And here's the form:

  form enctype = "multipart / form-data" method = 'post' action = 'reg.php' & gt; & Lt; input type = "hidden" name = "MAX_FILE_SIZE" value = "1000000" /> 
& lt; p & gt; Username & lt; Span class = 'sub' & gt; Must be at least 4 characters & lt; / Span & gt; & Lt; / P & gt; & Lt; Input type = 'text' name = 'user_name' id = 'user_name' / & gt; & Lt; Div id = 'usernamecheckbox' square = 'checkbox' & gt; & Lt; / Div & gt; & Lt; Br / & gt; & Lt; P & gt; Password & lt; Span class = 'sub' & gt; Must be at least 4 characters & lt; / Span & gt; & Lt; / P & gt; & Lt; Input type = 'password' id = 'pass' name = 'pass' / & gt; & Amp; Nbsp; & Lt; Input type = 'password' name = 'confirm' id = 'confirmpass' / & gt; & Lt; Div id = 'passwordcheckbox' class = 'checkbox' & gt; & Lt; / Div & gt; & Lt; Br / & gt; & Lt; P & gt; E-mail & lt; Span class = 'sub' & gt; Must be a valid e-mail address & lt; / Span & gt; & Lt; / P & gt; & Lt; Input type = 'text' name = 'email' id = 'email' size = '40 '/ & gt; & Lt; Div id = 'emailcheckbox' square = 'checkbox' & gt; & Lt; / Div & gt; & Lt; Br / & gt; & Lt; P & gt; Avatar & lt; / P & gt; & Lt; Input type = 'file' name = 'avatar' / & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt ;? Php require_once ('recaptchalib.php'); $ Publisher = "6 lily vequaaaaaaaaayuupjkrr_iibiixxhx 59989aacjjed"; // You can get it from the signup page recaptcha_get_html echo ($ publickey); ? & Gt; & Lt; Br / & gt; & Lt; Input type = 'submit' value = 'submit' & gt; & Lt; / Form & gt; Before doing the blurring (), you should test it with some simple code

  $ ("#pass"). Blur (function () {Alert ('#Bull triggered');});  

I think the problem is that you are looking for $ ("#passcheckbox"). I do not see anything in your code with id = "passcheckbox" . It looks like you're $ ( "# passwordcheckbox") .


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -