Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5
Mały problem w htmlu
#5
Po wpisaniu tego co pan up - działa to tak, że na początku blokuje tylko 1 button, a po zaznaczeniu checka i odznaczeniu już 2 buttony... jednak musi od razu blokować 2
teraz kod wygląda tak:
Kod:
<body onload="document.getElementById('a').disabled = true">
<body onload="document.getElementById('b').disabled = true">

Tu jest jakiś regulamin ...
<form method="POST" action="index.html">      <center>
    <p><input type="checkbox" id="C1" name="C1" value="ON" onchange="document.getElementById('a').disabled=checked?false:true; document.getElementById('b').disabled=checked?false:true">

<label for="C1">akceptuję regulamin</label></p>
        <input type="image" src="images/dodaj.png" value="Wejdź" id="a" name="B1">
         <input type="image" src="images/przejdz.png" value="Wejdź" id="b" name="B1">
</form>
</body>
Odpowiedz


Wiadomości w tym wątku
Mały problem w htmlu - przez creator - 07-05-2011, 04:45
RE: Mały problem w htmlu - przez kancik - 07-05-2011, 13:16
RE: Mały problem w htmlu - przez creator - 08-05-2011, 02:09
RE: Mały problem w htmlu - przez Kartofelek - 08-05-2011, 07:32
RE: Mały problem w htmlu - przez creator - 09-05-2011, 00:49
RE: Mały problem w htmlu - przez kancik - 09-05-2011, 21:33
RE: Mały problem w htmlu - przez creator - 10-05-2011, 19:34

Podobne wątki…
Wątek: Autor Odpowiedzi: Wyświetleń: Ostatni post
  [JS] Mały problemik z funkcją mores4 0 1,197 08-03-2010, 21:03
Ostatni post: mores4

Skocz do:


Użytkownicy przeglądający ten wątek: 1 gości
Sponsorzy i przyjaciele
SeoHost.pl