Wednesday, 18 September 2013

Does null condition is required while checking validation in input

Does null condition is required while checking validation in input

I am checking input box validation in java script using if condition.do we
also need to check for null. Or we can check only =''.
<script type="text/javascript">
if(txtname==null||txtname=='')
{
return false;
}
</script>

No comments:

Post a Comment