Reputation: 4044
Let's say I have a variable:
var $box = $(this).next('widget');
Now say I want to make another div inside the widget div fade out. How can I can be able to access that div inside the box variable?
Upvotes: 1
Views: 402
Reputation: 87073
var $box = $(this).next('widget');
$box.find('#your_div').fadeOut(); // #your_div is just a selector,
// you may have something different
Upvotes: 4