innerHTML of dynamically added element not updating in Chrome

Posted by Sara Chipps on Stack Overflow See other posts from Stack Overflow or by Sara Chipps
Published on 2010-12-24T09:47:17Z Indexed on 2010/12/24 9:54 UTC
Read the original article Hit count: 241

Filed under:
|
|
|

I'm modifying a dynamically created input element by setting the innerHTML, when I view the element in the DOM Inspector I can see that the values I passed are in the input. However, I can't see it on the page? Is there a refresh() function that I should be calling after setting the value?

I have tried innerText, and value and gotten the same results.

Here is how I am setting it:

$("input[name='group']")[0].innerHTML = groups;

(as far as the JS set and the JQuery selector I have found chrome plugins to be fickle this way)

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery