JavaScript input validation
<pre><code>&lt;script type="text/javascript"&gt;

// at least one number, one lowercase and one uppercase letter
// at least six characters
var re = /(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,}/;
var validPassword = re.test(input);

&lt;/script&gt;
</code></pre>

<p>Hi guys i have this input validation for password. However, I am not sure how do I insert an input box and a submit button which calls the check.</p>

<p>Currently I have a input box and submit button which will have errors if compiled.</p>
