开发者

Jquery click handler

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜