开发者

Jquery click handler

开发者 https://www.devze.com 2023-02-04 14:34 出处:网络
I have made a photogallery admin script I dont know how andle click event. Is more sample see to explayn

I have made a photogallery admin script I dont know how andle click event. Is more sample see to explayn

open

An开发者_Python百科y code improvement is welcome


Bind a handler to the click event of the buttons. You can use parent() to get the div holding the image.

$('.photo_tools .rotate_l').click(function(){
    alert($(this).parent().attr('id'));
    ...
});
0

精彩评论

暂无评论...
验证码 换一张
取 消