<select onchange="showMe(this);">
<option>Hide</option>
<option>Show</option>
</select>
<input id="idShowMe" style="display: none">
<b>Hello world!</b>
</input>
Run code snippet
<select onchange="showMe(this);">
<option>Hide</option>
<option>Show</option>
</select>
<input id="idShowMe" style="display: none">
</div>
Run code snippetHide results