I have a page where all inputs are assigned a behavior: $("input").blur(function () {
and I need to exclude a checkbox that has a specific id:
<input type="checkbox" id="allButMe" onchange="billingSameChanged();" value="true"/>
thx
I have a page where all inputs are assigned a behavior: $("input").blur(function () {
and I need to exclude a checkbox that has a specific id:
<input type="checkbox" id="allButMe" onchange="billingSameChanged();" value="true"/>
thx
Use jQuery's not
selector like this:
$("input:not(#allButMe)").blur(function() { });
use jQuery not here
$("input").not("#allButMe").blur(function() {});