Ticket #4007 (closed bug: invalid)
replaceWith error
| Reported by: | jmtoporek | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.2.1 |
| Component: | unfiled | Version: | 1.2.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
I wrote a javascript function to validate phone numbers, and included it in a simple HTML file so numbers can be submitted through a text field, then used jquery to print on the same page the results of the validation.
I used replaceWith() in the function to print the results. However after the first click the function no longer worked. When I changed the replaceWith statement with 2 jquery calls, an empty() & append(), numbers could be submitted repeatedly. That would lead me to believe the replaceWith is causing some kind of problem.
Attachments
Change History
Changed 4 years ago by jmtoporek
-
attachment
test_number.html
added
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

the file where I discovered this issue