dbj_regexp_selector T1
dbj_regexp_selector Test 1
by dbjdbj
HTML
<script src="http://dbj.org/6/jqplug/dbj_regex_selector/dbjregex.js"></script>
<ul id="unordered" style="padding:10px; width:400px; height:150px; background-color:lightgray; font:larger/1.5ex arial,verdana;">
<li style="background-color:red; padding:5px; margin:15px; width:89%;">First</li>
<li style="background-color:blue; padding:5px;margin:15px; width:89%;">Second</li>
<li style="background-color:teal;padding:5px; margin:15px; width:89%;">Third</li>
</ul>
JavaScript
function test(jqo) {
document.body.innerHTML += "<li style='font-size:10px;'>Selector: <b>" + jqo.selector +
"</b><ul><li><b>" + jqo.length + "</b> selected</li></ul></li>";
}
test($("li:rx(css:margin,5px)"));
test($("li:rx(css:margin,.)"));
test($(":rx(css:margin,.)"));
test($(":rx(style,teal):rx(css:margin,15px)"));