![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| ||||
| ||||
|
|
The following basic script works fine in firefox by not in IE. Can anyone spot the problem? |
|
function addRowToTable(){ var tbl = document.getElementById('itemlist'); var lastRow = tbl.rows.length; var row = tbl.insertRow(lastRow); // qty cell var qty2 = row.insertCell(0); var el_qty = document.createElement('input'); el_qty.setAttribute('type', 'text'); |
|
D.setAttribute('onClick','removeRowFromTable(this) '); |
|
function getRowIndex (cell) { return document.all ? cell.parentElement.rowIndex : cell.parentNode.rowIndex; |
#2
| |||
| |||
|
|
"Lasse Reichstein Nielsen" wrote: snip D.onclick = function(){removeRowFromTable(this);}; This does not work either same reason I think? below is the modified sample that tried. snip el_qty.onChange = function(){calc_total();}; snip |
![]() |
| Thread Tools | |
| Display Modes | |
| |