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'));
...
});
精彩评论