jquery get element code example
Example 1: jquery get
$.get( "ajax/test.html", function( data ) {
$( ".result" ).html( data );
alert( "Load was performed." );
});
Example 2: jquery select div in div
$("#tab > div > div")
Example 3: how to target an element inside of a $(this) jquery
$( this ).find( 'li.target' ).css("border", "3px double red");
Example 4: jquery element to dom element
$( "#foo" )[ 0 ]; // Equivalent to document.getElementById( "foo" )