I am trying to make it so that when the "enviar" button is clicked, the "resultado" goes from being hidden ("display:none") to being visible ("display:block").
This is my html document:
<script type="text/javascript">
function showResult(){
resultado.style.display='block';}
</script>
<input type="submit" value="Enviar" class="button2" onclick="showResult(resultado)" />
Here is my css document:
#resultado{
margin-left:;
border: 1px solid;
margin-left:10px;
display:none;
}
However, I am running into an issue. When I click on "Enviar", the "resultado" briefly changes to "block" for just a few milliseconds and then disappears again. I need help resolving this problem, can someone please assist?