I am trying to apply handler to all elements within an iframe (which is on the same domain) And I do not understand why this function runs on clicks only. I am afraid that it may have to do with the fact that if I am clicking on it, iframe is only activated. Applications have been seen in a JSFDell such as
it is basically Security code (I had tried to copy Jesfeld to use the representative function and achieve the same results):
$ ( 'Iframe'). material (). ("Mouseover", "*", function () {$ (this) .css ("background-color", "yellow");}); Working with that jsfiddle () I edit have found that if you switch it to the latest version of jquery 2.1.0, the code no longer works, it seems 1.8.3 It's the newest one that works with that code.
This works for me -
var $ c = $ ('Iframe'). material (); $ C.delegate ('div', 'hover', function () {$ (this) .css ("background-color", "yellow");});
No comments:
Post a Comment