sI'm currently checking if value is Nan using jQuery and would like to extend the check to not null or empty as well but not sure on how to do this, here's my code;
<script type="text/javascript"> // ensure quantity textbox is numeric
$(document).ready(function () {
$('[id$=txtQuantity]').change(function () {
if(isNaN(this.value)) {
alert("Please ensure the quantity specified is numeric");
$(this).val("1");
}
else{
$(this).val(this.value);
}
});
});
if(isNaN(this.value)) {toif(!this.value || isNaN(this.value)) {if(!this.value || isNaN(this.value))in other words if its null or a NAN