![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 6 Pomógł: 0 Dołączył: 27.05.2010 Ostrzeżenie: (0%) ![]() ![]() |
Mam pytanie jakie to są węły tekstowe w JavaScript?
Chodzi mnie tutaj o zastosowanie nodeValue sprawdzalem p i span, one zwracaja type = 1 a nie 3 przy zastosowaniu nodeType |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 4 340 Pomógł: 542 Dołączył: 15.01.2006 Skąd: Olsztyn/Warszawa Ostrzeżenie: (0%) ![]() ![]() |
http://www.javascriptkit.com/domref/nodetype.shtml
Cytat <div id="adiv"> <b>Some text</b></div>
<script type="text/javascript"> alert(document.getElementById("adiv").nodeType) //DIV element. Alerts 1 alert(document.getElementById("adiv").firstChild.nodeType) //Alerts 1 or 3, depending on browser. </script> |
|
|
![]() ![]() |
![]() |
Aktualny czas: 23.08.2025 - 14:25 |