Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> PHP lub Java Script - zmiana obramowania w formularzu
piotrekww
post
Post #1





Grupa: Zarejestrowani
Postów: 19
Pomógł: 0
Dołączył: 22.06.2008

Ostrzeżenie: (0%)
-----


Witam szukam skryptu do zmiany obramowania w formularzu...
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 1)
Wieczny
post
Post #2





Grupa: Zarejestrowani
Postów: 191
Pomógł: 1
Dołączył: 21.03.2007

Ostrzeżenie: (60%)
XXX--


O to ci chodzi ? smile.gif

  1. <form action='index.php' method=post>
  2. test<input id="1" type="text" name="pole1" onchange="test(this.id, this.type, this.value)">
  3. </form>
  4.  
  5. <script language='javascript'>
  6. function test(id, type, value)
  7. {
  8. if(document.getElementById(id).value=='xxx')
  9. {
  10.  
  11. document.write("Bląd").getElementById(id).style.borderColor='red';
  12.  
  13. }
  14. else
  15. {
  16. document.getElementById(id).style.borderColor='green';
  17. }
  18. }
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 19.08.2025 - 04:29