Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6385473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:54:16+00:00 2026-05-25T02:54:16+00:00

I have a form whose html looks like: <div id=form_container> <h1><a>Untitled Form</a></h1> <form action=save_form

  • 0

I have a form whose html looks like:

<div id="form_container">
        <h1><a>Untitled Form</a></h1>
        <form action="save_form" method="post" id="newform" name="newform">
          <div class="form_description">
            <h2 class="editable">Form title. Click here to edit</h2>
            <p class="editable">This is your form description. Click here to edit.</p>
          </div>
          <ul id="form_body">
          <li id="field1" class="world">
              <a href="#" onclick="return false;" class="hover">
              <label class="editable" for="field1">Text1</label>
              <input type="text" name="field1" value=""></a>
              <div class="element_actions">
                  <img src="/images/ico_delete_16.png" alt="Delete." title="Delete" class="remove_element">
              </div>
          </li>
           </ul>
        </form>
      </div>

I would like to clone the form and remove the ‘element_actions’ div from it. I do not want to modify the existing form, just the cloned version of it.

I have tried ‘remove()’ and ‘detach’ without success.

Here’s the test on jsfiddle: http://jsfiddle.net/truthseeker/LYCkt/

thanks for your help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T02:54:16+00:00Added an answer on May 25, 2026 at 2:54 am

    Try this

    $("#form_body").clone().find('.element_actions').remove().end().html();
    

    Working demo

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a radio button group on a survey form whose html looks like:
I have an HTML form whose action should be set dynamically through JavaScript. How
Let's say I have a form where users can search for people whose name
I have a Restlet Service that looks like this: @POST @Produces(application/json) public String processImmediately(String
If I have a simple html page with a small form whose data I'd
I have a form that contains dataGridView, whose coloumn are set to dgrv1.Width =dgrv1.Columns.GetColumnsWidth(DataGridViewElementStates.Visible)+20;
i have form action file in another directory but some file send to this
I have have a simple HTML form with say four input widgets (see below)...two
I have a snippet of HTML that is part of a form where there
I have a Web Form whose sole purpose is to redirect to other pages.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.