[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 81
  • 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.

http://jsfiddle.net/isogunro/t28sv760/7/

Any help would be appreciated.

Thanks!
0
Isaac
Asked:
Isaac
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>
   </select>
   <br />
   <input id="submitControlGroup" type="submit" value="Submit"/>
</div>

Open in new window

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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