Fork me on GitHub

jQuery Repeater

An interface to add and remove a repeatable group of input elements.

See GitHub for full documentation.


Default Configuration


$repeater.repeater();
Cars
Delete
Delete
Add


Custom Show/Hide Configuration


$repeater.repeater({
  show: function () {
    $(this).slideDown();
  },
  hide: function (remove) {
    if(confirm('Are you sure you want to remove this item?')) {
      $(this).slideUp(remove);
    }
  }
});
Cars
Delete
Delete
Add


Default Values


$repeater.repeater({
  defaultValues: {
    features: ['abs'],
    make: 'ford',
    model: 'Mustang'
  }
});
Cars
Delete
Delete
Add