Bug Tracker

Opened 8 years ago

Closed 7 years ago

Last modified 5 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.

Change History (1)

comment:1 Changed 7 years ago by dmethvin

  • Resolution set to invalid
  • Status changed from new to closed

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.