I have few nested DIVs at page. I want to add event only for smalest DIV which size is more than 100×100 px.
I am able to do it using conditions in code.
Is it possible to do using selector?
$('?????').click(function (e) {
}
If yes, please provide an example.
The simplest solution is programmatic. No native jQuery selectors will do this however you can write your own. You can then write:
It creates four selectors (only two of which are needed for this problem, the others are for completeness):
:larger(HxW):smaller(HxW):largest:smallestSource code: