lienoil / jquery-cloner Goto Github PK
View Code? Open in Web Editor NEWA jQuery plugin to clone HTML content
Home Page: https://lienoil.github.io/jquery-cloner/
License: MIT License
A jQuery plugin to clone HTML content
Home Page: https://lienoil.github.io/jquery-cloner/
License: MIT License
Hi, how can I disable autofocus after clone element? Not sure what to do with “focusableElement“.
Thank you for the great plugin.
The jquery-cloner works very well until I add the cloner options - it copies twice after button click.
Source:
<!-- initialize jQuery-Cloner via the `data-toggle=cloner` attribute -->
<div class="clonable-block" data-toggle="cloner">
<div class="clonable" data-clone-number="1">
<label for="attr_1" class="clonable-increment-for">Attribute <span class="clonable-increment-html">1</span></label>
<input id="attr_1" class="clonable-increment-id clonable-increment-name" type="text" name="attr[0]">
<button type="button" class="clonable-button-close">Delete</button>
</div>
<button class="clonable-button-add" type="button">Add Attributes</button>
</div>
<!-- jQuery is, of course, a dependency -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<!-- Our main man here -->
<script src="/dist/jquery.cloner.min.js"></script>
<script>
$('.clonable-block').cloner({
debug: true,
});
</script>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.