I'm trying to validate the textbox that should not contain all 0's or even just 1 zero, but it can contain any alphanumeric..
Condition is if we give just 0 or all 0's, it should not allow. Can we just check with the val
?
Here is the code
$(document).ready(function () {
$("#btnSave").click(function(){
AlertSave();
});
});
function AlertSave(){
if($('#txt').val() == '0'){
alert('should not be 0')
}
}