I am after documentation on using wildcard or regular expressions (not sure on the exact terminology) with a jQuery selector.
I have looked for this myself but have
James Padolsey created a wonderful filter that allows regex to be used for selection.
Say you have the following div:
div
Padolsey's :regex filter can select it like so: $("div:regex(class, .*sd.*)") Also, check the official documentation on selectors. 0 讨论(0) 查看其它10个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
Padolsey's :regex filter can select it like so:
:regex
$("div:regex(class, .*sd.*)")
Also, check the official documentation on selectors.