Web 2020 makeup solution || BIM NOTES
Q.no 11 & 16 :- checkout in web long answer question page . Q.no 12 Q. write a javaSrcipt to validate a form with inputs name (cann’t be empty ) & contact (cann’t be empty .
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
//bim study notes <html> <head> <script> function validateForm() { var x = document.forms["myForm"]["fname"].value; var y = document.forms["myForm"]["Cname"].value; if (x == "") { alert("Name must be filled out"); return false; } else if (y.length!=10) { alert("Contact must be 10 digit"); return false; } } </script> </head> <body> //bim study notes <form name="myForm" action="/action_page.php" onsubmit="return validateForm()" method="post"> Name: <input type="text" name="fname"> Contact: <input type="text" name="Cname"> <input type="submit" value="Submit"> </form> </body> </html> |
Q.No 13 write a javascript to reverse the given input integer (e.g 426 (input ) to 624 (output). […]
Continue Reading