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

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -