i'm new in HTML and JavaScript and I am having a little problem I have 3 DIVs
<div id="div1"> I'm div1 </div>
<div id="div2"> I'm div2 </div>
<div id="div3"> I'm div3 </div>
and I have 3 buttons and each one of them enables the corresponding DIV and disables the others to show only 1 DIV at a time
<input type="button" name="Showdiv1" value="Show Div 1" onclick="showDiv1()" />
<input type="button" name="Showdiv2" value="Show Div 2" onclick="showDiv2()" />
<input type="button" name="Showdiv3" value="Show Div 3" onclick="showDiv3()" />
I've searched multiple solutions and they only show how to enable, and I don't know why, I can't disable them.
showDivfunctions) so people can let you know where you went wrong and help you improve.