Why can\'t I get this to work??
$(\"a\").each(function() { if ($(this[href$=\"?\"]).length()) { alert(\"Contains questionmark\"); } }); >
$(\"a\").each(function() { if ($(this[href$=\"?\"]).length()) { alert(\"Contains questionmark\"); } });
Try this:
$("a").each(function() { if ($('[href$="?"]', this).length()) { alert("Contains questionmark"); } });