javascript - Filter Last child when Hover Element -


i have problem when want create inpector plugin of jquery, if select child of element should not select parent element.

enter image description here

that inpect double border actualy home element inspected follow parent.

this jsfiddle

http://jsfiddle.net/rp7hr/46/ 

and code how plugin called

$(function(){      //generate dropdown list        var test = $('.summary').ksinspect();   }); 

and don't understand why element on iframe tag cannot hover ?

the effect see becuase of event bubbling. stop should use event.stoppropagation()

here updated demo

see updated

_ks.onmouseover = function() {     var el = ktm.query(document).find('*');     el.on('mouseenter',function(e){         e.stoppropagation(); // newly added line...         var d = new date();         var id = d.gettime() + randomid(1);         var parents = ktm.query(this).parents("*");         var getparents = _get_parents(ktm.query(this));         ktm.query(this).attr('data-key',id); //add attr data-key         ktm.query(getparents).removeclass('glare'); //remove class         ktm.query("[data-key=" + id + "]").addclass('glare'); //add class          console.log("selector = " + getparents);         console.log("cusrrent selector = " + this);     }); } 

Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -