jquery - Properly firing JavaScript on Different tags -
i having difficulty trying make javascript fire in of necessary places in project. before problem, let me give little background of project.
i made jsfiddle elementary, accurate mock of current website. idea when click black boxes, info associated box appears in grey "info" box.
here jsfiddle: http://jsfiddle.net/5dquk/27/
the problem clickable area in the black boxes area surrounding p tag (http://imgur.com/adq0z5f)
is there way make javascript fire when region of black box clicked? have tried adding p exception in javascript, did not work....
$("#block-buttons").on("click", "div", ***"p",*** function (clickevent) {
any appreciated, many thanks!!!
the issue isn't clickable area, it's logic in event handler.
here working version
i changed target line to
var target = $(this).data("target");
Comments
Post a Comment