jquery - Blur event doesn't fire when navigating away from input field -
Blurred functions do not fire when I exit my input field.
Any ideas?
& lt; Input type = "text" value = "test" id = "webshop_product_url_part" name = "setting" class = "is" /> Jquery ("input.is"). Live ("blur", function () {console.log ("2"); conslole.log ("asdf");});
live
uses event delegation to work This means that only events that bubble can take advantage of are incidents that do not bubble, and therefore can not use event deletion (jQuery Live), which include Blur and Focus.
The only way around this is to pair the event into each element when you add and make the element, then tie it up, you can also write a plugin which can be used in the form of jQuery's attachment
, you can specify an event, and it adds the handler to all the elements that match your selector.
Comments
Post a Comment