GithubHelp home page GithubHelp logo

Comments (2)

tristandenyer avatar tristandenyer commented on June 6, 2024

You just need to wrap all of those individual divs with a parent div. This will still be inside the form tag like this:

<form>
<div class="new_wrapper_div">
<div class="onoffclass">
...
</div>
</div><!--end new_wrapper_div>
</form>

In my example above, .new_wrapper_div is what the JS is cloning (line 9 & 56 of my JS.) Every div-wrapped label inside it gets cloned too.

So, just ad a parent/wrapper div around the individual .onoffclass divs.

See what happens when I clone the sections:
screen shot 2013-07-25 at 9 14 08 pm

from clone-section-of-form-es6-or-jquery.

tristandenyer avatar tristandenyer commented on June 6, 2024

@saqwild Did my explanation make sense? Were you able to fix the problem? If not, let me know and I will help you further.

from clone-section-of-form-es6-or-jquery.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.