Doubts on saving objects in an array and accessing them
Hi,
I'm trying to do something, but I don't know if I'm totally wrong:
$(document).ready(function(){
var parray = $("p");
parray[1].addClass("blue");
});
However, this doesn't make any change to my 1st <p> element. Is it because the array that $("p") can't be treated like this?
Thanks.