Page 1 of 1

how to remove this error ??

Posted: Fri Jun 29, 2007 4:39 am
by PHPycho
Hello forums!!
I had used the following function(for deleting div elements) and its working properly

Code: Select all

function deleteCampaignRow(parentElem, childElem){	
	var parentObj = document.getElementById(parentElem);
	var childObj = document.getElementById(childElem);
	parentObj.removeChild(childObj);		
}
when the form is submitted , it gives the error "parentObj has no properties".
how to solve the above problem ?
Any Idea ??
Thanks in advance to all of you

Posted: Fri Jun 29, 2007 5:33 am
by idevlin
What does the HTML definition of the object you are trying to remove look like?