How to select child elements under id in jQuery

Viewed 102962

Sample code:

<div id='container'>
  <h1>heading 1</h1>
  <h2>heading 2</h2>
  <p>paragraph</p>
</div>

I would like a jQuery equivalent of this CSS selector to select the h1 element under the div:

#container h1 {}
1 Answers
Related