I have an div
with the id
article_50
.
If I were to select the .title
element inside article_50
, I could do the following:
$("#article_50 .title")
.
Now say I want to select that same title, but within a click event:
$("#article_50").click(function(){
$(this).children(".title").hide();
});
Now I had to call the children
method to select that .title
element.
Could I select it within the same selector without the need to call children
?
Something like this:
$("this .title").hide();
Thanks!