Bug Tracker

Opened 14 years ago

Closed 13 years ago

Last modified 11 years ago

#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:
Blocked by: Blocking:


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 (1)

test_number.html (1.1 KB) - added by jmtoporek 14 years ago.
the file where I discovered this issue

Download all attachments as: .zip

Change History (2)

Changed 14 years ago by jmtoporek

Attachment: test_number.html added

the file where I discovered this issue

comment:1 Changed 13 years ago by dmethvin

Resolution: invalid
Status: newclosed

The replaceWith method *replaces* the error div, which is why it only works for one click. That's working as documented.

Note: See TracTickets for help on using tickets.