Hi,
I am using jquery's change() to perform actions when SELECTs of a certain class are changed, however I do not want the last drop down in the DOM of this class to perform the action.
I have tried
$("select.prodOption").change(function(){
if($(this) !== $("select.prodOption").filter(':last')){
//do stuff
}
});
hoping that the called function would first check if this is the last element and only do the action if false.
I also tried adding a blank function seperately to the last element too, hoping this would overide the previous call, but both run instead.
$("select.prodOption").filter(':last').change(function(){ /*do nothing*/ });
Anybody got any ideas how I assing an onchange call to all but the last element of a class.