desabilitar opções qdo clicar em Incluir
Ola
Galera estou precisando o seguinte, tenho o formulário abaixo e quero que quando o usuário clicar no botão Incluir as opções EXCLUIR e ALTERAR sejam desabilitadas, sendo que o usuário somente conseguirá preencher o formulário quando clicar em INCLUIR.
>
<html>
<head>
<title>Formulario</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
.button {
font-family: Verdana;
font-size: 12px;
color: #000000;
border: 1px solid #333333;
}
.button1 {
font-family: Verdana;
font-size: 12px;
background-color: #EBEBEB;
border: 1px solid #333333;
}
.style3 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; }
</style>
</head>
<body>
<form action="[http://localhost/teste/projeto.exe/acao"](http://localhost/teste/projeto.exe/acao) method="post">
<input name="incluir" type="button" class="button" id="incluir" value="Incluir">
<input name="alterar" type="button" class="button" id="alterar" value="Alterar">
<input name="excluir" type="reset" class="button" id="excluir" value="Excluir">
<input name="consultar" type="button" class="button" id="consultar" value="Consultar">
<br><br>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="16%"><span class="style3">Código<br>
<input name="CODIGO" type="text" id="CODIGO" class="button" onFocus="this.blur()" value="17" size="10">
</span></td>
<td width="35%"><span class="style3">Nome<br>
<input name="NOME" type="text" class="button" id="NOME" size="35">
</span></td>
<td width="35%"><span class="style3">Fantasia<br>
<input name="FANTASIA" type="text" class="button" id="FANTASIA" size="35">
</span></td>
<td width="14%"><span class="style3">Filial<br>
<input name="CFILIAL" type="text" class="button" id="CFILIAL" size="10">
</span></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</form>
</body>
</html>
Alguem pode ajudar?
ObrigadoDiscussão (6)
Carregando comentários...