• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 83
  • Last Modified:

Using Jquery clone

So sorry.  I had this posted earlier but accidentally deleted it.  My apologies to anyone that posted a comment.

The following code is not copying the submit button just the dropdown.


Any help would be appreciated.

1 Solution
Chris StanyonCommented:
You're cloning the controlGroup, which doesn't contain the submit button. Move that inside the controlGroup DIV and you're good to go:

<div class="controlGroup">
   <h2>Filter by Role</h2>
   <select id="RoleSelect">
      <option selected="selected" value="all">All</option>
      <option value="command-Andrew">Andrew</option>
      <option value="command-Charles">Charles</option>
      <option value="command-DPE">DPE</option>
      <option value="command-CDD">CDD</option>
   <br />
   <input id="submitControlGroup" type="submit" value="Submit"/>

Open in new window

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now