I have a div
in HTML with a select
and I want to call a function in JavaScript the content of this div
change, after doing Several things in my JavaScript code. I want this select
to disappear and a table appear that I will fill in with JavaScript to change the content.
Can I somehow have a div
hidden with the table until deactivate the div
with the select
and activate the div
with the table?
It would be to change the content of div
with id=loggedin
(the table that is in that div
is not the one that I want to fill, that I use it to place the select
).
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div id="loggedin">
<div id="header">
Logged in to as <span id="fullName"></span>
<a id="disconnect" href="#">Log Out</a>
</div>
<div id="output"> </div>
<table id=tabla style="width:100%">
<tr> </tr> <tr> <th> </th> </tr>
<tr> </tr> <tr> <th> </th> </tr>
<tr>
<th>
<select class="select" id="boards"></select>
</th>
</tr>
</table>
<span id="res"> nada</span>
<span id="res2"> nada</span>
<span id="res3"> nada</span>
</div>