getElementById returning value only for first element
问题 I have a script which is called on request on some generated elements, and selects specified element by id. The bizarre issue I'm experiencing is that the select perfectly works for the first item on the page but returns null for every other item. What could be the cause of this? Here's the relevant Javascript: <script type="text/javascript"> function showFrame(content, id, vid, crating) { var container = document.getElementById(vid+'_container'); $('#'+vid+'_embed').html(content); $('#'+vid+