$(".clickme").attr("id");
On 24 Mrz., 14:03, Jesse <cdrp...@gmail.com> wrote: > Hello, > > I am not good at js. I want to get the id from "A" tag. > E.g. <a href="/comment.php" class="clickme" id="1234">link</a> > > I need the value "1234" from the code above, but dont know how to do > it. > > Please help. > > Thanks.