My text field has a regular expression validation that should not accept the value "0". Do I need to use an "and" condition or an "OR CONDITION" in the if statement below?
var regex = /^[0-9][0-9]{0,3}$|^[0-9][0-9]{0,3}[\.][0-9]$/;
if(!regex.test($('#text1').val()))
{
alert("please ");
}