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
Post a Comment