0

I have my html tag as

<img src="D:\img1" class="date"/>

my jquery is

$(".date").click(function(e) { alert(e) });

I wanted to know how to pass the value "e" from img tag

4

1 回答 1

0
$(".date").on("click", function() {
    var $this = $(this); //clicked elemnt
    var attributeValue = $this.attr("atribute-name");
    // some more code
});
于 2013-07-30T14:03:56.640 回答