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

http://jsfiddle.net/5dquk/36/

i changed target line to

var target = $(this).data("target"); 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -