Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p> </p> <pre><code>&lt;!-- Dont forget to include the jQuery library here --&gt; &lt;script type="text/javascript" src="jquery-1.3.2.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; $(document).ready(function() { $("#validate").keyup(function(){ var email = $("#validate").val(); if(email != 0) { if(isValidEmailAddress(email)) { $("#validEmail").css({ "background-image": "url('validYes.png')" }); } else { $("#validEmail").css({ "background-image": "url('validNo.png')" }); } } else { $("#validEmail").css({ "background-image": "none" }); } }); }); function isValidEmailAddress(emailAddress) { var pattern = new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i); return pattern.test(emailAddress); } &lt;/script&gt; &lt;style&gt; #validEmail { margin-top: 4px; margin-left: 9px; position: absolute; width: 16px; height: 16px; } .text { font-family: Arial, Tahoma, Helvetica; } &lt;/style&gt; &lt;title&gt;Live Email Validation with jQuery Demo&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;div class="text"&gt;&lt;h1&gt;Reynoldsftw.com - Live Email Validation&lt;/h1&gt;&lt;h2&gt;Type in an email address in the box below:&lt;/h2&gt;&lt;/div&gt; &lt;div&gt;&lt;input type="text" id="validate" width="30"&gt;&lt;span id="validEmail"&gt;&lt;/span&gt;&lt;/div&gt; &lt;div class="text"&gt;&lt;P&gt;More script and css style </code></pre> <p>: <a href="http://www.htmldrive.net/" rel="noreferrer" title="HTML DRIVE - Free DHMTL Scripts,Jquery plugins,Javascript,CSS,CSS3,Html5 Library">www.htmldrive.net </a> </p> <hr> <p>Source:htmldrive.com</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload