javascript - jQuery event.stopPropagation() and event issues -
I am creating a jQuery script that adds a pin to a map on the click event, the problem is that I It is necessary that only for his son to work on the map ..
This is my code:
$ ("div # map"). Click (function (e) {$ ('' div class = "pin"> ''). Css ({left: a_valable, top: one more_varai}). This is; $ ("div.pin"). Another problem is that under this code I have something like this: function (e) {e.stopPropagation ()}} $ ("Div.pin") .Musudown (function (e) {if (e.which == 1) {console.log ("bottom"); moving = True; $ (this) .addClass ("moving");} and if (e.j ==3) {console.log ("true");}});
Is this script even built after load?
JSField:
Comments
Post a Comment