That is, can I define a selector called "shiny" and do ... ?
$$('div.shiny') //undesired -- class based
$$('div:shiny') //desired -- logic based
This is available in MooTools and jQuery.
That is, can I define a selector called "shiny" and do ... ?
$$('div.shiny') //undesired -- class based
$$('div:shiny') //desired -- logic based
This is available in MooTools and jQuery.
according to $$ it supports:
$$('div:empty');
// -> all DIVs without content (i.e., whitespace-only)