Jump to content
Fórum Script Brasil
  • 0

funçao habilita select


Oi preciso ajuda pra terminar essa função...

Ao selecionar uma categoria no select cat ele habilita outro select



function habilita(){
if (frmrel.cat.valor.value=='1'{
select categoria
<td align="left"><b>Categoria:</b>
<td align="left">
<select name="cat" class="combos" id="combo" onClick="habilita();" onchange="habilita();" >
<option value="1">Selecione uma Categoria</option>
<option value="2">Usuario de Pista</option>
<option value="3">Técnico</option>
<option value="4">Tipo de Reset</option>
<option value="5">Data</option>
esse e um dos select que quero habilitar ao selecionar o valor = 3 = Técnico
<td align="left">
<select name="tec" class="combos" id="combo" onchange="enviadados2(this);" onClick="enviadados2(this);" disabled="disabled" >
<option value="">Selecione um Técnico</option>
[email protected]_query("SELECT * FROM R358 A, R004 B WHERE A.NOMTEC=B.USUCOD order by USUNOM");
while ($lin_tec= ibase_fetch_assoc($trastec))
echo "<option value=$lin_tec[NOMTEC]>$lin_tec[uSUNOM]</option>";
agradeço desde já

Link to post
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Cloud Computing

  • Forum Statistics

    • Total Topics
    • Total Posts
  • Create New...