|
i would like to know if it possible to use "if condition" in jquery. i need to write in jquery this condition if #mydiv height > 0 ( function to close the div) can someone help me to translate this in jquery? thanks |
|
Use a custom selector // custom selector jQuery.expr[':'].over = function(o,i,m,s){ return $(o).height() > +m[3]; }; //usage $('#mydiv:over(400)').hide(); |
|
Of course you can:
|


