[jQuery] JQUERY SELECTOR based on image path
Hi folks,
This works - but I was wondering if there is a cleaner more jquery way
to do the same thing? Perhpas there is a selector that I missed in
the docs?
$(function() {
s = $("img").eq(0).attr("src")
if (s.search("images/m")>0) {
$("img").eq(0).addClass("newimage")
}
});
tia,
George