How to remove particular sections from html? RRS feed

  • Question

  • User-587451972 posted


    I need a solution to remove particular section from html page. 

    Requirement: User will upload any word document using file-upload control (user cannot do any changes in word document) and i have to convert that document into HTML page. Then i have to provide a solution to a user to remove unnecessary section from the html page and save into the DB.

    I am able to covert word doc into HTML page but not getting solution to remove particular section/ unnecessary section from Html page (that section may be contain images or unwanted text). I tried googling but not able to find the solution. Is there any way we can remove particular section/ area from HTML page?, if yes then please help me in that.

    Thanks in advance.

    Tuesday, March 22, 2016 6:29 AM

All replies

  • User-271186128 posted

    Hi archer85,

    You could try to use .remove() or .empty() method, code as below:

        <script type="text/javascript">
            $(document).ready(function () {
                $("#Button1").click(function () {
            <input id="Button1" type="button" value="button" />
            <section id="sec1">

    Best regards,

    Tuesday, March 22, 2016 10:52 AM