Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • When I remove comma error disappear, but now i just getting "Error in event handler for 'undefined': TypeError: Cannot call method 'replace' of undefined". Could it be because of I don't have DOM elements specified in my jQuery code? Commented Jul 13, 2011 at 15:14
  • @Cris: This is a separate issue. I don't know what line you're getting that error on, but I do notice that you never check the validity of data. Perhaps you can abstract out the AJAX request and demonstrate the issue in jsfiddle. Commented Jul 13, 2011 at 15:21