Questions tagged [jquery.repeater]

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

Github

https://github.com/DubFriend/jquery.repeater

Demo

http://briandetering.net/repeater

Syntax

<form class="repeater">
  <div data-repeater-list="group-a">
    <div data-repeater-item>
      <input type="text" name="text-input" value="A" />
      <input data-repeater-delete type="button" value="Delete" />
    </div>
    <div data-repeater-item>
      <input type="text" name="text-input" value="B" />
      <input data-repeater-delete type="button" value="Delete" />
    </div>
  </div>
  <input data-repeater-create type="button" value="Add" />
</form>
$('.repeater').repeater();
37 questions
0
votes
2 answers

Jquery, how to loop inside repeater setlist?

I have code as below, var $repeater = $('.repeater').repeater(); $repeater.setList([ { 'text-input': 'A' }, { 'text-input': 'B' }, { 'text-input': 'c' }, //and so on... ]); but the problem is, I have no idea how to loop the {…
LearnProgramming
  • 814
  • 1
  • 12
  • 37
0
votes
1 answer

How to set default value for input with type of date in jquery repeater?

I use jquery repeater in my project. When I try set default value for input type date return error: jquery.repeater.js:688 Uncaught TypeError: Cannot read property 'set' of undefined Form code:
Andreas Hunter
  • 4,504
  • 11
  • 65
  • 125
0
votes
0 answers

How to Add repeater field into profile form Ultimate member plugin

I want to create simple community directory for that I am using Ultimate Member plugin. I want admin to manage all the things from front end. Every member will have his family members and for this I want a repeater field (with add/remove button) so…
0
votes
1 answer

Adding vertical labels to jquery.repeater field

I am using the jquery.repeater field and would like to add a label on top of the the field that gets repeated. See below my minimum viable example: $(document).ready(function() { 'use strict'; $('.repeater').repeater({ defaultValues:…
Carol.Kar
  • 4,581
  • 36
  • 131
  • 264
0
votes
1 answer

Laravel array validation - finding the array key for error highlighting

I have a repeating field which allows users to upload multiple files at once, using the https://github.com/DubFriend/jquery.repeater package. I have a form request for validation, which works, but in the view I don't know how to highlight only the…
Rob
  • 573
  • 4
  • 13
0
votes
1 answer

Update attributes for other balise than input with jquery.repeater ? (usefull for ajax validation message)

using https://github.com/DubFriend/jquery.repeater, i have to add fields validation message in my repeater template. So the message span container data-validate-for attribute must be updated at the same time as his corresponding input name because…
pat-och
  • 345
  • 3
  • 17
-1
votes
1 answer

How to display data from database using JQuery Repeater and php

I have been tying to make JQuery repeater plugin works fetching data from database. I already have this working inserting the data into the database but I have not look retrieving the inserted data to edit it. This is the code I have in php and…
1 2
3