I have this javascript function to validate if a number is greater than another number
function validateForm() { var x = document.forms[\"frmOrder\"][\"t
Do this.
var x=parseInt(document.forms["frmOrder"]["txtTotal"].value); var y=parseInt(document.forms["frmOrder"]["totalpoints"].value);