I have a form and I want to disable all the Elements that do not match a given ID using jquery
here is the basic logic I’m trying to achieve
for (AllElementsInthisForm){
if(formElementID != specificid)
{
disable
}
}
I hope that makes sense. Any ideas?
There is a :not selector.
Or an alternative sytax which is suitable for more complex conditions:
http://jsfiddle.net/wMUsg/