Saya hanya ingin mengganti nama teks legenda secara terprogram dengan id=item_30
<fieldset data-role='controlgroup'>
<legend id='item_30'>JS</legend>
<input id ='Server1' type='radio' name='Serveridor' value='1' onclick=DefinirServer('www.rotatorsurvey.com') ><label for='Server1'>www.encuesta.ws</label>
<input id ='Server2' type='radio' name='Serveridor' value='2' onclick=DefinirServer('www.rotatortablet.com') ><label for='Server2'>www.onlinesurvey.co</label>
</fieldset>
Saya mencoba:
document.getElementById('Item_30').innerHTML = 'halo teman-teman';
TAPI CHROME SECARA DRAMATIS CHASH dan berkata: Uncaught TypeError: Cannot set property 'innerHTML' of null