jQuery Plugin To Dynamically Add More Form Fields - czMore
Briefly

jQuery Plugin To Dynamically Add More Form Fields - czMore
"czMore is an easy-to-use jQuery plugin that allows to dynamically duplicate and add/remove groups of fields from a specific form as needed. See also: How to use it: 1. Load the latest version of jQuery library and the jQuery czMore plugin's script at the end of your html document. 2. Create the first group of form fields you want to duplicate. The form fields could be any types of form elements such as inputs, selects, checkboxes, etc. Product* Unit* --------- 1/2liter Quantity* 3. Just initialize the plugin by call the function on the top container and we're done. $("#czContainer").czMore();"
"4. Default plugin options and callbacks. $("#czContainer").czMore({ // maximum number of form fields allowed max: 50, // minimum number of form fields allowed min: 0, // uses your own CSS styles styleOverride: false, // change the prefix name of the text field countFieldPrefix: '_czMore_txtCount' } 5. Callback functions & event handlers. $("#czContainer").czMore({ onLoad: function(index) { // on load }, onAdd: function(index) { // on add }, onDelete: function(id) { // on delete } })"
czMore is a jQuery plugin that duplicates and removes groups of form fields dynamically. The plugin requires loading jQuery and the czMore script, creating an initial group of form fields, and initializing via $("#czContainer").czMore(). Default options include max, min, styleOverride, and countFieldPrefix to control field limits and naming. Callback hooks include onLoad, onAdd, and onDelete for custom behavior during lifecycle events. The changelog documents fixes and added options, compatibility updates with newer jQuery versions, and a change to zero-based field indexing. The plugin is developed by yatabani.
Read at www.jqueryscript.net
Unable to calculate read time
[
|
]