javascript - Using this with pseudo selectors jquery -


i'd know if there way use this css pseudo selectors - (aka nested elements) in jquery. here's might like.

    $('#element').click(function(){         $(this' .nested').css('height','100px');     }); 

but isn't how syntax works. i'd know how work.

use find() instead. example:

$('#element').click(function(){     $(this).find('.nested').css('height','100px'); }); 

Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -