I know how to remove attribute from a single element, there are already some posts about that:
$(\"div.preview\").removeAttr(\"style\");
Th
Try doing this
$("#frameDemo").contents().find("#div_id").parent('div').removeAttr('onclick'); $("#frameDemo").contents().find("#div_id").children('div').removeAttr('onclick');