Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [JavaScript] problem z type="radio"
slawek_master
post
Post #1





Grupa: Zarejestrowani
Postów: 64
Pomógł: 0
Dołączył: 4.01.2006

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


witam

  1. <script type="text/javascript">
  2.  
  3. var element = document.createElement('input');
  4. element.type = "radio";
  5.  
  6. document.getElementById('id').appendChild(element);
  7.  
  8.  
  9. //albo zwyczajnie przez innerHTML
  10.  
  11. document.getElementById('id').innerHTML = "<input type="radio" />";
  12.  


oba sposoby wyswietlaja mi radio ale pod IE6 te radio jest nie aktywne, nie moge go zaznaczyc

pod IE7,mozilla itp dziala poprawnie

jakies sugestie ?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
erix
post
Post #2





Grupa: Moderatorzy
Postów: 15 467
Pomógł: 1451
Dołączył: 25.04.2005
Skąd: Szczebrzeszyn/Rzeszów




Porównaj:
Kod
document.getElementById('id').innerHTML = "<input type="radio" />";


z:

Kod
document.getElementById('id').innerHTML = "<input type="radio" name="asd" />";

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

Posty w temacie


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: 12.10.2025 - 07:48