jQuery变量输入选择器在ie中不起作用

jQuery变量输入选择器在ie中不起作用,jquery,html,Jquery,Html,嘿,我现在很绝望 jQuery: $(".rotateme li a").click(function(){ var curid = $(this).attr('id'); $('#box'+curid).fadeIn('slow'); return false; }); $('.close').click(function() {$(this).parent().fadeOut("fast");}); Html(略带.rotateme li)

嘿,我现在很绝望

jQuery:

    $(".rotateme li a").click(function(){
    var curid = $(this).attr('id');
    $('#box'+curid).fadeIn('slow');
    return false;
    });

$('.close').click(function() {$(this).parent().fadeOut("fast");});
Html(略带.rotateme li)

Html(应该淡入的框)


接近

计算机活动

更多附加细节

问题:(快速演示,它在firefox中如何工作,在ie和chrome中如何不工作)

在ff中运行良好

其他一切都不起作用

令人恼火的是,变量定义正确,我可以提醒它,我可以将它文本化为任何内容,在所有方面都可以正常工作,但将它放入fricken选择器根本不可能

选择器的定义也是正确的,
$(“.rotateme li a”)
工作得非常好(绑定。单击其上的事件工作得非常好)

真正令人沮丧的是,它在firefox中运行良好,而在其他任何地方都不起作用


请帮助。

问题是我在php中使用的nl2br解析。nvm

<ul class="rotateme">
<li><a href="#" id="ca1"><img src="http://bythescruff.com/redesign/wp-content/uploads/em_ca1.jpg" alt="Small Client Image" /></a></li>
</ul>
<div id="boxca1" class="clbox invis">
<div class="close pngfix"><p>close</p></div>
<div class="clbox-wrap"><div class="dispwrap"><a href="none" class="climgapp">
<img src="http://bythescruff.com/redesign/wp-content/uploads/em_ca1_l.jpg" alt="Clients image" /></a></div>
<p class="clextlnk"><a href="none" title="none">none</a></p>
<h1 class="cltitle">Computer active</h1>
<div class="c"></div>
<p class="pinfo">Even more additional details.</p>
</div></div>