этот скрипт jQuery работает на firefox, он дает предупреждение. , но он не работает в IE 7. Есть идеи, что пошло не так?jQuery siblings()/next() не работает в IE
разметка:
<td class="tdnotes">
<a title="" class="notes" id="order-1" href="#">
<!-- an image -->
</a>
<div style="display: none;" id="wrap-order-1" class="thenotes">
<!-- text area, input elements -->
</div>
</td>
сценарий:
$(function(){
$("a.notes").click(function() {
alert($(this).siblings().attr("class"));
// I have tried .next() but didn't work as well
// alert($(this).next().attr("class"));
return false;
});
});
Вы добавляете обработчик кликов в готовые() или загружаете() ? – cletus