2009-10-26 69 views
0

嘿,我絕望在這裏。jQuery變量變成選擇器不工作在ie

的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立位)

<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> 

HTML(是應該淡入盒子)

<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> 

問題:http://screenr.com/rqN (快速演示,它如何在Firefox中工作,不在IE和Chrome中)

ff。Works罰款。

其他一切都沒有。

令人討厭的是變量的定義正確,我可以提醒它,我可以將它文字化爲任何東西,可以很好地工作,但是將它放入fricken選擇器根本就不會發生。

選擇器也被正確定義,$(".rotateme li a")絕對正常工作(綁定.click事件就可以正常工作)。

真正令人沮喪的是,它在Firefox中正常工作,並不在其他任何地方。

請幫忙。

回答

0

問題是我在php中使用的nl2br解析。 NVM。