I have a jquery selector which looks like this:
$("#MasterListDVWP tr td:contains('" + currentSchool + "')").siblings("td:contains('Yes')").siblings("td:contains('CD'),td:contains('Other1')").each(function() {
// do something
});
Could someone help me to convert the selector so that it returns the object that matches the exact text rather than just contains?
I know this isn’t valid but something like this..siblings(“td:equals(‘CD’)”)…
Your help will be greatly appreciated.
your best bet is probably the .filter() function. Pass it a function that tests the text of the elements you’re checking