jquery show all children code example

Example 1: find name description jquery children()

{
    'name': $(this).children('input[name="paramName"]').val(),
    'value': $(this).children('input[name="paramPrice"]').val()
};

Example 2: jquery get child div

$(this).children('div').show();

Example 3: select xml child element with jQuery

var xmlString = "<route><name>Lakeway</name><abrv>LAKE</abrv><eta><time>00:30</time><dest>MAIN</dest></eta></route>",
xmlDoc = $.parseXML( xmlString ),
$xml = $( xmlDoc ),
$abrv = $xml.find( "abrv" ).text() == "LAKE" ? $xml.find( "abrv" ) : false;

var time = $abrv.next().children("time").text();
var dest = $abrv.next().children("dest").text();

alert(time + " " + dest);