tristandenyer / clone-section-of-form-es6-or-jquery Goto Github PK
View Code? Open in Web Editor NEWNow on npm. Using vanilla JavaScript (ES6) or jQuery to duplicate a section of a form, maintaining accessibility (a11y).
License: MIT License
Now on npm. Using vanilla JavaScript (ES6) or jQuery to duplicate a section of a form, maintaining accessibility (a11y).
License: MIT License
Hi Tristan,
I have some difficulties with jQuery in IE9. Is there an way to make the clone section working on IE9?
Kind regards
Somebody added this awesome plugin to http://bootsnipp.com/resources page :) thanks!
i just stucked and cant get any idea how too do it.
Source array:
["data"] => array(10) {
["type"] => string(10) "controller"
["name"] => string(3) "eg1"
["description"] => string(5) "desc1"
["type2"] => string(8) "function"
["name2"] => string(2) "c2"
["controller2"] => string(4) "welcome"
["description2"] => string(6) "desc 2"
["type3"] => string(10) "controller"
["name3"] => string(2) "c3"
["description3"] => string(8) "c3 descr"
}
from the above array how can i get new array like:
array(
array(
'type' => 'controller',
'name' => 'eg1',
'description' => 'desc1'
),
array(
'type' => 'function',
'controller' => 'welcome',
'name' => 'c2',
'description' => 'desc 2'
),
array(
'type' => 'controller',
'name' => 'eg1',
'description' => 'desc1'
),
array(
'type' => 'controller',
'name' => 'c3',
'description' => 'c3 descr'
)
);
data is submitted through a https://github.com/tristandenyer/Clone-section-of-form-using-jQuery
thanks for help
Hi,
this is really nice, but I have one issue.
my form fields are wrapped in multiple divs, how do I copy the same structure, for example.
<div class="onoffclass">
<label for="recipeqty" class="col col-lg-1 control-label">Quantity:<sup>*</sup></label>
<div class="col col-lg-3 controls">
<input id="recipeqty" class="input-with-feedback" name="recipeqty" data-content="Required: Numeric - Ingredient Quantity" data-placement="top" data-toggle="popover" title="Ingredients Quantity" type="text">
</select>
</div>
</div>
<div class="onoffclass">
<label for="recipeunit" class="col col-lg-1 control-label">Unit:<sup>*</sup></label>
<div class="col col-lg-3 controls">
<input id="recipeunit" class="input-with-feedback" name="recipeunit" data-content="Required: unit like pcs/cups/pinch/spoons/etc " data-placement="top" data-toggle="popover" title="Ingredients Units" type="text">
</select>
</div>
</div>
how to overcome this problem
regards
Hi, This cloning section of Form is very useful. but i am facing one issue in this.
While clicking the cloned checkbox caption, it automatically selecting the first checkboxes.
Please suggest for this issue.
occur a problem that the next select option is frozen when clone select option with chosen.js.
It will be great if you could publish this on npm. Then everyone can download it via npm/yarn with nice versions and stuff.
Label's don't seem to update their 'for' attributes to match the cloned/updated input id. On your example, the cloned labels, when clicked, check/focus the original input.
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.