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
3
votes
1 answer

Passing data to create view from store method in Laravel

I'm using a jquery repeater plugin and I need to post a json data which is repeater fields data to store method and back that data if there are validation errors. How that is possible?
Ehsan Mousavi
  • 399
  • 1
  • 3
  • 10
3
votes
14 answers

jQuery form repeater and select2 dont work together

I am using Select2 and jQuery form repeater (https://github.com/DubFriend/jquery.repeater) I have searched on google/so for 2 days, but cant seem to get it to work. include jquery/select2.js/jquery.repeater.js var form =…
Zerre
  • 105
  • 2
  • 2
  • 7
2
votes
1 answer

Form is not sending input field when jquery repeater is used

I am using https://github.com/DubFriend/jquery.repeater (jquery repeater) to clone the form field. It is successfully cloning the field, however, when form is submitted the field is not being sent. So, far I found that input field outside the…
Aayush Dahal
  • 856
  • 1
  • 17
  • 51
2
votes
2 answers

Why does jQuery repeater's add button not working when I try to placed it on tr td?

I am using https://github.com/DubFriend/jquery.repeater (jQuery repeater) to repeat the form field. The Add button is not working, however, delete is working fine $('.repeater').repeater();
Saroj Shrestha
  • 2,696
  • 4
  • 21
  • 45
2
votes
2 answers

Display the value on each repeater item

I use jquery repeater to create a dynamic form.
Zhumpex
  • 121
  • 1
  • 3
  • 17
2
votes
2 answers

How to execute the next code only after the slideUp is complete in jquery.repeater

This is the original code $(this).slideUp(deleteElement); itemRemove(); The above code calls itemRemove() before the slideUp is complete. So I used callback function as below $(this).slideUp( deleteElement, function() { itemRemove(); }); But…
Joyston
  • 806
  • 8
  • 10
2
votes
0 answers

how to echo data of jquery repeater field

This is the form I want to echo the data submitted , I used to echo data using $_POST['field_name']; but this form has a repeatable field and I couldn't find the solution , please help me I am a learner. thanks in advance. plugin used…
user2506619
  • 61
  • 1
  • 5
1
vote
0 answers

Summing values from jquery repeater inputs based on values from other inputs in same row

I have a page that has 4 main inputs to accumulate the totals of certain fields on a jquery repeater. The repeater is meant to assign employees to a project and assign what their fee would be. A project can have anywhere from 1 employee assigned,…
1
vote
1 answer

ASP.NET Core Model Binding using jquery repeater

There are many similar question yet I don't find any suitable answers. I use Jquery repeater repeater and repeater is working fine but I can not bind my model as input name doesn't match my model name. So I followed this answer answer and changed…
1
vote
0 answers

Jquery Repeater Execute a function before creating new row

Hi I have a form that implements jquery-repeater. Code was working fine and somehow it has stopped functioning properly. Basically I have 2 different pages 1 for new form 2nd for editing a form. On new form everything works fine but edit…
seneill
  • 63
  • 7
1
vote
2 answers

Insert multiple rows in mysql using jquery repeater

I have a form repeater (https://github.com/DubFriend/jquery.repeater) that adds multiple inputs if needed, but the only thing is.. i don't know how to make'it to insert in sql all the data from form at once. So here's what i have so far, sorry for…
Alex
  • 47
  • 8
1
vote
1 answer

Jquery repeater delete item not updating values

I am using this jquery repeater. I am using custom calculations on each addition of form, say multiplying one input with another, and then making a total of multiplication results. Problem is when we click on delete, it just hides the row but don't…
rjcode
  • 1,193
  • 1
  • 25
  • 56
1
vote
0 answers

jquery repeater taking last data record when added

using for each loop I have to retrieve data however when adding new record data-repeater-create is taking default value as the last record of data even the element id is different.
1
vote
0 answers

jquery.repeater has a problem with setList function to Render Multiple Groups

Jquery Repeater code, I have problem with if I am adding multiple groups and use setList function then its always set fields values for last group, not for all group. For Example;
The Archer
  • 21
  • 2
  • 7
1
vote
0 answers

Dynamic Input via Repeater Get Data on Button Click

I am considering using jquery.repeater in my Spring MVC project, but I am wondering how I would add the user's input to the model (I'm using @ModelAttribute for other, static fields). The repeater would basically consist of 4 different text inputs…
cb1295
  • 733
  • 4
  • 18
  • 36
1
2 3
ID Name