Adding new element is working fine, but when I click on delete to remove the element, I get the Main Container object and also the child element object within the button exists and was clicked.
now the problem comes when I try to delete the element, I am getting the object till the html table
control that contains the controls, but do not get the div that is containing the table.
Note : the div contains the table is the child div/element.
To Add element.
var ab = '<table rules="none" width="100%">
var lstChild = $("#contControls").children().last();
var containerElement = document.getElementById("contControls");
var newElement = document.createElement("div");
var mainContainer = $(obj).parents("div #contControls");
var mySelf = obj.parentNode.parentNode.parentNode.parentNode.parentNode;
problem occurs with mySelf
control that is not accessing the div
control that contains the table, due to that delete operation doesn't work.
please guide me.