Jquery find behavior in firefox 3.5.9

Posted by dragoon on Stack Overflow See other posts from Stack Overflow or by dragoon
Published on 2010-06-14T19:57:02Z Indexed on 2010/06/14 20:02 UTC
Read the original article Hit count: 174

Filed under:
|

Hi, i have the following piece of HTML code on my page:

<tr>
  <td>
    <div>
      <input type="hidden" name="test" value="">
      <input autocomplete="off" class="ffb-input watermark">
      <div class="ffb">
        <div class="content">
        </div>
      </div>
    </div>
  </td>
</tr>

In JavaScript I get the <tr> element using jquery and trying to search for input like this:

tr.find('div input:hidden')

but nothing is returned. When I'm using find like this:

tr.find('div input[type=hidden]')

Everything is working fine. What is the reason for such behavor? I observe this only in FireFox 3.5.9, not in 3.6.3, Jquery 1.4.2

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-selectors