I have attached jsfiddle example here. I want to know difference between null and blank
My function is working fine but when I change blank to null in if condition it stop working.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
you should probably change the condition to
if('input[type=radio]:checked').val())this way it will check both null and empty strings. but in this case i dont think you will ever get a null string.dont use
"!="here because that might lead to some unpredictable behaviour use"!==".""