Skip to main content

Bug Tracker

Side navigation

#4007 closed bug (invalid)

Opened January 27, 2009 09:44PM UTC

Closed October 14, 2009 02:11AM UTC

Last modified March 15, 2012 03:25PM UTC

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 January 27, 2009 09:46PM UTC.

    the file where I discovered this issue

Change History (1)

Changed October 14, 2009 02:11AM UTC by dmethvin comment:1

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.