dom - Jquery removing element from html -
i have html var content = $("#directions-panel > .adp").find("div[jsinstance='"+i+"']").prop('outerhtml');
i'm attempting remove first table column within html.
here attempt not working.
content.findr(".adp-directions > tbody > tr > td.adp-substep:eq(0)").remove();
your code remove first cell class adp-substep
. instead of doing, try:
content.find(".adp-directions > tbody > tr").each(function(){ jquery(this).find("> td.adp-substep:eq(0)").detach(); //or remove });
the code above remove first cell of each table row.
Comments
Post a Comment