3. Create a Form in HTML with two fields, minimum and maximum, write JavaScript to validate that only numeric value is entered in both, and the value entered in minimum is less than the value entered in maximum.
<!-- --------------------------------------------------------------------------------------------------------------------------------- HTTP://WWW.GTUMCA.CO.CC ---share your college materials on --- [email protected] JOIN US ON FACEBOOK: with more than 1000 GTU MCA FRIENDS TWITTER @MCAGTU ---------------------------------------------------------------------------------------------------------------------------------------> <html> <head> <script language="javascript"> function chk(frm) { var min,max; min=document.frm.min.value; max=document.frm.max.value; if(parseInt(min)!=min || parseInt(max)!=max) { alert("Enter only numeric values..."); document.frm.min.value=0; document.frm.max.value=0; } else if(min>max) { alert("You have not enterd proper value..."); document.frm.min.value=0; document.frm.max.value=0; } else { alert("values submitted successfully..."); } } </script> </head> <body> <form name='frm'> <b> Minimum : <input name="min"><br> Maximum : <input name="max" onBlur='chk(this)'> </b> </form>