innerHTML of dynamically added element not updating in Chrome
- by Sara Chipps
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)