I saw this piece of code:
$("ul li").text().search(new RegExp("sometext", "i"));
and wanted to know if this could be extended to any line?
I want to do the following, but it does not work:
$("li").attr("title").search(new RegExp("sometext", "i"));
Also, who has a link to jQuery documentation for this function? I don't seem to understand.
javascript jquery string
Omar Dec 06 '09 at 6:00 2009-12-06 06:00
source share