I would like to select all inputs in my div and set them new value but also I want to exclude inputs with certain value something like this:
$('#mydiv input:not(val("100")').val(myvariable);
how to do that, is it possible in simple selector? thanks
You need to use the attribute not equal selector.
$('#mydiv input[value!="100"]').val(myvariable);
jsFiddle
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With