DubFriend / jquery.repeater

Create a repeatable group of input elements
MIT License
388 stars 191 forks source link

Add an item by javascript #154

Open alanisrael7 opened 2 years ago

alanisrael7 commented 2 years ago

addItem as public method. It lets add one item by javascript

kohaistyle commented 2 years ago

Hello ! Just tried the dynamic function to add items programmatically but :

$('.repeater').addItem({price: '', moq: ''}) VM7139:1 Uncaught TypeError: $(...).addItem is not a function at :1:16

Even though i grabbed the latest jq.repeater.js ... Any ideas ?Thanx