p0larBoy
p0larBoy

Reputation: 1310

jquery "html" function returns weird behaviour

i used jquery "html" function:

$('#color .updateMoney').html('1');

to replace a certain string but instead it replace the content with an anchor wrapping like this:

<a xmlns="http://www.w3.org/1999/xhtml">1</a>

Why is that so?

Upvotes: 0

Views: 92

Answers (1)

p0larBoy
p0larBoy

Reputation: 1310

I saw a similiar thread: link text

Apparently it seems to be a firefox problem. I used

$('#color .updateMoney').empty().append('1');

instead to solve the problem.

Upvotes: 1

Related Questions