Ticket #5741 (closed bug: worksforme)
$(element).html(val) SERIOUS BUG
| Reported by: | Taturana | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | 1.4 |
| Component: | ajax | Version: | 1.4a2 |
| Keywords: | html | Cc: | |
| Blocking: | Blocked by: |
Description
The problem is: when you change successively the html of an element (and the new html content has javascript code), after certain change the javascript code is no longer executed (inside the element). I'll give example in code, just download the attached file and test. Click successively on the button and you'll see the alert won't appear after the second or third click.
Attachments
Change History
comment:2 Changed 3 years ago by zjs
The attachment does not use the $(element).html(val) function you refer to in the subject of the ticket. I'm not sure I see a bug in the provided php file; it seems to be behaving as I would expect it to. Could you verify that you've uploaded the correct attachment?
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

