Can anyone tell me if it\'s possible to find an element based on its content rather than by an id or class?
I am attempting to find
Best way in my opinion.
$.fn.findByContentText = function (text) { return $(this).contents().filter(function () { return $(this).text().trim() == text.trim(); }); };