Opened 14 years ago
Closed 14 years ago
#4260 closed bug (invalid)
focus/blur events no longer work with jquery created inputs
Reported by: | fracmak | Owned by: | brandon |
---|---|---|---|
Priority: | major | Milestone: | 1.4 |
Component: | event | Version: | 1.3.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
when you create an input using jquery: ex $("<input/>") and attach a focus or blur event to it, the events are never fired. I've attached an example of it not working.
Attachments (1)
Change History (4)
Changed 14 years ago by
comment:1 Changed 14 years ago by
comment:3 Changed 14 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Replying to fracmak:
The attached example (test.html) won't work as the focus event is not being attached to the created input, but rather the #insert element. This is because the append method doesn't return a jQuery object of the newly created elements. You could use appendTo to get the functionality you're seeking.