
Untitled
By: a guest on
May 7th, 2012 | syntax:
None | size: 0.49 KB | hits: 9 | expires: Never
Loop in Jquery by using eq
$("#test a").each(function (index) {
alert($("#test a:eq(index)").attr("title"));
})
alert($("#test a:eq(0)").attr("title"))
$("#test a").each(function () {
alert( this.title );
});
$("#test a").each(function(index) {
alert( $("#test a:eq(" + index + ")").attr("title") );
});
$("#test a").each(function() {
alert( $(this).attr("title") );
});
$("#test a").each(function(k, v){
alert($("#test a:eq(" + k + ")").attr("title"));
});