Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <input type="text" id="formcheck" class="contact" maxlength="255" />
- <input type="text" id="formcheck" class="contact" maxlength="255" value="Blue"/>
- <input type="button" id="clickB" value="click me">
- $("#clickB").click(function(){
- if (document.getElementById('formcheck').value != 'Blue') {
- alert('Please enter the correct word.');
- document.getElementById('formcheck').focus();
- return false;
- }
- })
- if (f.formcheck.value != 'Blue') {
- alert('Please enter the correct word.')
- f.formcheck.focus()
- return false
- }
- if (f.formcheck.value != 'Blue') { alert('Please enter the correct word.'); f.formcheck.focus(); return false; }
Add Comment
Please, Sign In to add comment