title: How to check if child exists
body: <p>I have a div which could potentially have a hyperlink with an id of reply. How can I check if that <code>a[id=reply]</code> exists? I thought it might be something like this but it alerts the message even if that hyperlink does not exist.</p>
  
  <pre><code>if($('div[chunk_id='+reply_chunk_id+']').children('a[id=reply]')){              
      alert('test');
  }
  </code></pre>