retrieve the id of one element through its css class

bassemand

New Member
I have some elements which have the same CSS classI would like to know how can I retrieve the ID of one of them; such as the first one with that class This is my current code, but it isn't working\[code\]$('.imageofarticle').mousemove(function(){ var a = $(this).attr('id'); var tableau = a.split(":"); alert("get the first : "+$('.showmovingEdit').[0].attr('id')); // $('.showmovingEdit')[tableau[1]].show();});\[/code\]
 
Top