|
|
|
JavaScipt - Динамическое добавление строки
|
|||
|---|---|---|---|
|
#18+
Есть HTML ПРи нажатии на кнопку должна добавляться строка таблицы ! Но этого не происходит! почему? <html> <script type="text/javascript"> function BtnClick() { var vTr = document.createElement("tr") ; vTr.appendChild( document.createElement("td") ); var t = document.getElementById("t"); t.appendChild( vTr ); } </script> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"></meta> <title> index </title> </head> <body> <form method="get" enctype="application/x-www-form-urlencoded"> <button type="button" onclick="BtnClick()" ></button> </form> <table id="t" cellspacing="2" cellpadding="3" border="1" width="40"> <tbody> <tr> <td> </td> </tr> </tbody> </table> </body> ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.07.2005, 10:23 |
|
||
|
JavaScipt - Динамическое добавление строки
|
|||
|---|---|---|---|
|
#18+
не проще так: Код: plaintext 1. 2. 3. 4. 5. 6. -- Lacrima Mosa Est ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.07.2005, 10:37 |
|
||
|
|

start [/forum/topic.php?fid=59&msg=33160644&tid=2152003]: |
0ms |
get settings: |
7ms |
get forum list: |
17ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
36ms |
get topic data: |
10ms |
get forum data: |
2ms |
get page messages: |
48ms |
get tp. blocked users: |
1ms |
| others: | 222ms |
| total: | 349ms |

| 0 / 0 |
