So this is my code atm
$('tr[id^=__table0-rows-row]').live('click', function () { $(this).toggleClass('row_selected'); var nTds = $('td', this); var tranr_row = $(nTds[1]).text(); console.log(tranr_row); var tableMIS = document.createElement("div"); $(this).append(tableMIS); buildStopTable(tranr_row); if(selectedTours.indexOf("TNR:"+tranr_row)== -1){ selectedTours.push("TNR:"+tranr_row); }else { arrayPosition=selectedTours.indexOf("TNR:"+tranr_row); selectedTours.splice(arrayPosition,1); } } );
And later on I try to place a table to this div.
oTable2.placeAt("tableMIS");
When i click on the main table it tells me the following error "Error: DOM element with ID 'tableMIS' not found in page, but application tries to insert content."
Can someone help me with that?