hai everybody
am new to jsp am using following code to check the value entered in text box with some maximum value. if it's greater then the maximum value i need to display error div instead of alert box.please help me.
var max=document.getElementById("max");
if(max.value !=" " && max.value !=null && max.value !="")
{
if( val >= max1 )
{
alert("max1");
}
}
Thank you.....