Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> problem z input typu checkbox
kufalo
post
Post #1





Grupa: Zarejestrowani
Postów: 251
Pomógł: 2
Dołączył: 24.08.2005

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


  1. i=document.createElement('INPUT')
  2. i.type="checkbox"
  3. i.checked=true
  4. document.body.appendChild(i)
  5. </script>
  6. </body>


Jak wygenerowac input typu checkbox, ktory jest zaznaczony ?
Go to the top of the page
+Quote Post
nospor
post
Post #2





Grupa: Moderatorzy
Postów: 36 557
Pomógł: 6315
Dołączył: 27.12.2004




zapewne pod IE ci nie dziala. zmien troche kolejnosc:
Kod
<script language="javascript">
  i=document.createElement('input');
  i.type="checkbox";
  document.body.appendChild(i);
  i.checked=true;
</script>

smile.gif


--------------------

"Myśl, myśl, myśl..." - Kubuś Puchatek || "Manual, manual, manual..." - Kubuś Programista
"Szukaj, szukaj, szukaj..." - Kubuś Odkrywca || "Debuguj, debuguj, debuguj..." - Kubuś Developer

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: 21.08.2025 - 18:34