I have this code inside a form. However, when I click first on "Show section below", it quickly shows the "multmachines" div then this same button appears again and the div disappears.
I don't know why it doesn't work (it works fine if I put the buttons outside of the form but not inside). Any help please !!

```
<form name="input" action="" method="POST">
 <button class="close" id="hidemultmachines" onclick="$('#multmachines').hide();   $(this).hide();$('#showmultmachines').show();">Hide section below <img alt="Close" width="35" height="35" src="../images/close.png"> </button>
 <button class="close" id="showmultmachines" onclick="$('#multmachines').show();   $(this).hide();$('#hidemultmachines').show();"><img alt="Show" width="35" height="35" src="../images/arrow-down.png">Show section below</button>
 <div class="jumbotron" id="multmachines">
     <div class="divtable">
         <table id="hosts" class="table table-striped">
             <tr>
                 <th width="28%"><strong>Prefix</strong></th>
                 <th width="17%"><strong>Type</strong></th>
                 <th width="27%"><strong>Group</strong></th>
                 <th width="60%"><strong>Number of Machines</strong></th>
             </tr>
             <tr>
                 <td><input type="text" name="prefix" class="a1" size="16"></td>
                 <td><select name="machinestype" class="a1">
                     {html_options values=$types output=$types}
                     </select>
                 </td>
                 <td><select name="machinesrange" id=machinesrange class="a1">
                     {html_options values=$ranges output=$ranges}
                     </select>
                 </td>
                 <td><input type="text" name="machinesnumber" id=machinesnumber class="a1" size="32">
                 </td>
             </tr>
         </table>
     </div>
 </div> 
</form>

```

I precise that I have this code in the header, so it's not because of that:

```
$(document).ready(function(){
   $('#hidemultmachines').hide();
   $('#multmachines').hide();
  });

```

**QUESTION UPDATED**