этот скрипт jQuery работает на firefox, он выдает предупреждение.
но это не работает в IE 7. есть идеи, что пошло не так?
разметка:
<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;
});
});