Hello,
I'm learning JQuery and have found the factory function $() with its selectors quite useful. However, I cannot figure out how to select within a particular element I have named as a variable. For example:
var thisDiv = $("#myDiv");
// thisDiv looks like this:
<div id="myDiv">
<input id="apples" />
<input id="bananas" />
</div>
How would I select the input with id="apples" given only the variable thisDiv in JQuery? Thanks!