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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -