0
HTML of textarea
with the open button:
<input type="button" name="abrir" class="botao">
<div id="comentario" style="display:none">
<textarea id="Observacao" name="Observacao" style="color: black;"></textarea>
</div>
To open the button I am using the following script
:
$('input[name=abrir]').mousedown(function(e){
e.preventDefault();
if( e.button != 1 ) {
$('#comentario').show();
}
return false;
});
But I intended that by clicking the button again to close.