Jim
0
Q:

jquery find

$( "li.item-a" )
  .closest( "ul" )
  .css( "background-color", "red" );
5
$(this).children('div').show();
5
{
    'name': $(this).children('input[name="paramName"]').val(),
    'value': $(this).children('input[name="paramPrice"]').val()
};
1
var myVar = $("#start").find('.myClass').val();
1
$(".txtClass")                  =>  getElementsByClassName()

$("#childDiv2 .txtClass")       =>  getElementById(),
                                    then getElementsByClassName()

$("#childDiv2 > .txtClass")     =>  getElementById(),
                                    then iterate over children and check class

$("input.txtClass")             =>  getElementsByTagName(),
                                    then iterate over results and check class

$("#childDiv2 input.txtClass")  =>  getElementById(),
                                    then getElementsByTagName(),
                                    then iterate over results and check class
2
$( "li.item-ii" ).find( "li" ).css( "background-color", "red" );
3

New to Communities?

Join the community