views:

30

answers:

0

Possible Duplicate:
attribute value

I have an atribute test that I get the value of like this

$('#row').attr("test"); //this works
now I need to put this in a loop and get the value but its not working. This is what I am doing

for(var i=0; i=mySpansCount; i++)
{
alert($('#row').attr("test")[i);

} All I am getting in alert box is undefined. Thanks