[jQuery] Problem with selectors in Internet Exploter
Hi JQueriers,
I have a problem with JQuery selectors in Internet Exploter (I'm
using IE7). What I have in DOM is:
....
<div id="item">
<input type="checkbox" value="4" name="tutorial1"/>
<a href="#">
<img alt="no publicado" src="img/noeye.png"/>
Titulo Tutorial 4: Contenido Tutorial 4
</a>
</div>
...
Then, when the user clicks the link inside the "item" div, the
following happens:
...
$('#content a').click( function (event)
{
var iID_tutorial = $
(event.currentTarget).parent().find("input[@type=checkbox]").val();
...
In iID_tutorial I get the value of the checkbox next to the link the
user clicks.
In Firefox that selector works properly and I get 4 (according to the
DOM it this example),
But it IE7 it doesn't work and I get a wonderful "null".
Any ideas to solve this problem?
Thanks in advance.