javascript - How to check if value is not `blank` in this code using Java Script or jQuery? -


how check if value not blank in code using java script or jquery?

<select name="producttype" class="selectoption">     <option class="selectoption" value="blank">select something</option>     <option class="selectoption"  value="test1">test1</option>     <option class="selectoption"  value="test2">test2</option>     <option class="selectoption"  value="test3">test3</option> </select> 

using jquery:

$(".selectoption").on("change", function() {     if ($(this).val() != "blank")         // }); 

Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -