Thread Mit Javascript Zeilen in einer Tabelle hinzufügen (12 answers)
Opened by Kuerbis at 2011-08-26 00:22

Kuerbis
 2011-08-26 14:25
#151833 #151833
User since
2011-03-20
936 Artikel
BenutzerIn
[default_avatar]
Ich habe es mit Javascript probiert, aber das hat mir kein Resultat geliefert:

Code (html): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE HTML>
<html>
<head>
<script type="text/javascript">
function displayResult()
{
        var h = document.getElementById("tr_1").style.height;
        document.write( h );
}
</script>
</head>
<body>
<form>
        <table id="t1" border="1">
                <tr id="test"><th>Menge</th><th>Bezeichnung</th></tr>
        </table>
        <br /><br />
        <input type="button" onclick="displayResult()" />
</form>
</body>
</html>

View full thread Mit Javascript Zeilen in einer Tabelle hinzufügen