Wykonywanie tego kodu:
Kod
var table = document.getElementById('tabelka');
var selecttr = document.createElement("tr");//tr na górze tabelki
table.insertBefore(selecttr, table.getElementsByTagName("tr")[0]);
zwraca mi następujący błąd:
Kod
Błąd: uncaught exception: [Exception... "Node was not found" code: "8" nsresult: "0x80530008 (NS_ERROR_DOM_NOT_FOUND_ERR)" location: "http://localhost/bua/htdocs/js_tools/MyTablefilter.js Line: 23"]
Czy ktoś z was wie w czym jest problem?