I want to pass Jquery object to function but its not working for IMG tag.
I made below example.When I click on the text it works , But when I click on image its not working.
$(document).on('click','.playvid',function (event) { event.stopPropagation(); popup($(event.target)); }); function popup(data) { data.html("success"); } .playvid { cursor:pointer; } <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <div data-id="3ZdHRvPNyCI" class=" playvid" ><img src="https://cdn4.iconfinder.com/data/icons/iconset-addictive-flavour/png/button_green_play.png">WATCH DEMO</div>