jQuery search immediate children
snippet in javascript

jQuery search immediate children

user3785

// Use the .children() function, which is like .find(), but only
// searches immediate children.

$('div').children('p');