Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [javascript] *radiobox*
jbiz
post
Post #1





Grupa: Zarejestrowani
Postów: 71
Pomógł: 0
Dołączył: 10.03.2004
Skąd: z duszy :]

Ostrzeżenie: (20%)
X----


witam wszystkich,
bardzo potrzebuje tak oprogramowac grupy dwoch checkboxow w formularzu aby zachwoywywaly sie jak radiobuttony, tzn onclick, if !checked then zaznacz && odznacz drugi... itd (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)

bede bardzo wdzieczny za malego gotowca

serdecznie pozdrawiam
Go to the top of the page
+Quote Post
Vir
post
Post #2





Grupa: Zarejestrowani
Postów: 91
Pomógł: 0
Dołączył: 25.02.2004

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


[xml:1:3d14b34544]<script type="text/javascript">
function check() {
if (document.test.check_1.checked == true) {
document.test.check_1.checked = true;
document.test.check_2.checked = false;
}
}
function check2() {
if (document.test.check_2.checked == true) {
document.test.check_1.checked = false;
document.test.check_2.checked = true;
}
}
</script>[/xml:1:3d14b34544]

[xml:1:3d14b34544]<form name="test">
<input type="checkbox" name="check_1" onClick="check()">
<input type="checkbox" name="check_2" onClick="check2()">
</form>[/xml:1:3d14b34544]
Go to the top of the page
+Quote Post
jbiz
post
Post #3





Grupa: Zarejestrowani
Postów: 71
Pomógł: 0
Dołączył: 10.03.2004
Skąd: z duszy :]

Ostrzeżenie: (20%)
X----


podziekowal (IMG:http://forum.php.pl/style_emoticons/default/laugh.gif)
Go to the top of the page
+Quote Post

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

 



RSS Aktualny czas: 23.08.2025 - 17:40