Revision: 28461
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 8, 2010 17:29 by omerta83
Initial Code
/*
<div id="yourparent">
<div id="mychild"> </div>
</div>
*/
// Here are three ways to access an element within an element:
$('#yourparent').find('#mychild')
//or even shorter:
$('#mychild', $('#yourparent'))
//or even shorter:
$('#mychild', '#yourparent')
Initial URL
Initial Description
Initial Title
Selecting elements within another element
Initial Tags
javascript, jquery
Initial Language
JavaScript