sheraz arshad sheraz arshad - 1 year ago 65
jQuery Question

How to select an element with multiple classes in jQuery?

$(this).find("tr[class='well answers-list radio-list array2']").filter(function(){
st+="inside array";


This code works fine and selects elements with multiple classes. But if I select it with 'well answers-list radio-list' omitting the last 'array2' class then it gives error. It's my requirement to omit the last class to be able to select other elements too.
Is there a way to do it?


Answer Source

Question is very vague and doesn't explain exactly what you are trying to do but you probably want something like:

           st+="inside array";
            st+="not array";
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download