The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Aa
By Guest on 6th February 2024 10:23:55 AM | Syntax: PYTHON | Views: 205



New Paste New paste | Download Paste Download | Toggle Line Numbers Show/Hide line no. | Copy Paste Copy text to clipboard
  1. [2/6, 3:52 PM] JIBIN JIJO: script type="text/javascript">
  2.  
  3. //Form validation code will come here. function validate()
  4.  
  5. if document.myForm Name value)
  6.  
  7. alert("Please provide your name!"); document.myForm.Name.focus(): return false;
  8.  
  9. if document.myForm. EMail.value)
  10.  
  11. alert( "Please provide your Email!"); document.myForm.EMail.focus(); return false;
  12. [2/6, 3:53 PM] JIBIN JIJO: if( document.myForm.Pin.value"|| isNaN( document.myForm.Pin.value)|| document.myForm.Pin.value.length !=6)
  13.  
  14. alert( "Please provide a Pin in the format ######"); document.myForm.Pin.focus():
  15.  
  16. return false;
  17.  
  18. 1 if( document.myForm.Country.value="-1")
  19.  
  20. alert( "Please provide your country!");
  21.  
  22. return false;
  23.  
  24. 1 return( true );
  25.  
  26. </script>





aa