Hi
I have 3 different images on my page, with same IDs for each. And names for each images as img1, img2, img3 respectively
I am using the following function in jQuery, but for some reason, the alert prompts me with the first image name no matter which image i click.
Plz helpCode:$(document).ready(function(){ $("#img_skin").click(function(){ alert($("#img_skin").attr("name")); });
Thanx



Reply With Quote
then click Go Advanced and add the Resolved prefix to the thread title. This will let other users know the problem has been solved.

Bookmarks