Jump to content
Fórum Script Brasil
  • 0

Preencher Campo Automaticamente


Ronaldo Bugiga
 Share

Question

3 answers to this question

Recommended Posts

  • 0

Cara, dá uma olhada neste código. Ele faz mais ou menos o que você quer, só que através de um select...

Talvez possa t dar uma luz...

<FORM action='caminho_do_arquivo' method=post name=teste>
<br><br><select name=lista size=1 onchange="if(this.value!='') document.teste.result1.value = document.teste.lista.options[document.teste.lista.selectedIndex].text; document.teste.result.value=this.value;">
<option value='valor 1'>Teste1
<option value='valor 2'>Teste2
<input type=text size=10 name=result readonly><input type=hidden size=10 name=result1>
</form>

Abçs

Link to comment
Share on other sites

  • 0

cara

tenta assim

<FORM action='caminho_do_arquivo' method=post name=teste>
<br><br><select name=lista size=1 onchange="if(this.value!='') document.teste.result1.value = document.teste.lista.options[document.teste.lista.selectedIndex].text; document.teste.result.value=this.value;">
<option value='<%=Date()%> - <%=time%>'>Teste1
<option value='SELECIONE O VALOR UM PARA APARECER A DATA E HORA'>Teste2
<input type=text size=50 name=result readonly><input type=hidden size=10 name=result1>
</form>

abraços

Link to comment
Share on other sites

Join the conversation

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

Guest
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.

 Share



  • Forum Statistics

    • Total Topics
      151k
    • Total Posts
      649.1k
×
×
  • Create New...