hi gud mrng,
in text box i need to enter numbers i.e., frm 0-9..and tht text box is take any no..but i need is i need an alert if i enter '0' and also if user enters '10' it shld take...only '10' and other nos. frm 1-9..can anyone help me out..here is my code.
thanks,
madhu.
in text box i need to enter numbers i.e., frm 0-9..and tht text box is take any no..but i need is i need an alert if i enter '0' and also if user enters '10' it shld take...only '10' and other nos. frm 1-9..can anyone help me out..here is my code.
Code:
chkRate = /^[123456789]\d{1}$/; if (chkRate.test(form.rate.value)){} else { alert('Invalid \" Rating \" Entry'); return false; }
madhu.
Comment