LIVE PREVIEWBUY FOR $3


This plug-in could be very helpful for many who have to duplicate or delete fields inside a kind.

WHAT DOES:
1) You insert the shape inside a div (container) that has a particular class eg. (Class = “contenitore_input”)
2) il div con classe “contenitore_input” verrà chiuso in un ulteriore div con un id specifico es:.(id=”contenitore_generale”)
3) the div with class “contenitore_input” will likely be closed in one other div with a particular id eg. (id = “contenitore_generale”)
4) assign a reference attribute to every area to be duplicated eg. &lt enter alt=”nome” &gt
this attribute would be the fastened a part of the “NAME” and “ID”, on this case:
contemplating the sector &lt enter alt=”nome” &gt
will change into
&lt enter alt=”nome” title=”nome_ 1 ” id=”nome_ 1 ” &gt
click on on add …
&lt enter alt=”nome” title=”nome_ 2 ” id=”nome_ 2 ” &gt
and many others…
This permits the web page receiving the request to acquire the worth of a particular enter or just differentiate between them
additionally permits differentiation of the id to behave on the weather by way of JS uniquely

ADVANCED FEATURES :
1) implementation of a kind of validation to the addition of fields:

  • class to point the binding of a area
  • class to point {that a} area should be numeric
  • class to point {that a} area should include an e-mail
  • class to point {that a} area should include a date within the format dd / mm / yyyy

2) callback features can be found after the addition and after elimination of fields

3) duplication of all of the attributes of duplicate fields for consistency


Source