copy :input values to targeted inputs on select events
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


@author Jesse Baird

Target :inputs in a form and copy their value to select number of targets using event delegation.

A practical use case for this plugin would be an e-commerce form with billing and shipping fields containing a checkbox labeled "My billing and shipping addresses are the same" When that's checked copy / clone the values to the shipping address fields.

Take this sample markup into consideration

	<input type="text" name="a">
	<input type="text" name="b">
	<input type="text" name="c">

If we wanted to copy a's value to b and c, we would setup the plugin like this

            	//copy a input to b and c

This sets up event delegation on form in the event namespace "cloneVal"(by default)

If you want to disable this event handlers just call