You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<script>
$(document).ready(function(){
'use strict';
$('table.repeater').repeater({
show: function () {
$(this).slideDown();
},
hide: function (deleteElement) {
if(confirm('Are you sure you want to delete this element?')) {
$(this).slideUp(deleteElement);
}
}
});
});
</script>
here is an image of my table
I want to add a new row when the plus button is clicked. I have test this with regular form fields it works fine. but once i put it in the tr and td tags, when i click on the plus button, it doesn't respond.
Below is the result i want to achieve.
The text was updated successfully, but these errors were encountered:
Try using button element instead of <a>. Else just try input type=button as per the docs and see if that works. If you want fa icon to be displayed you can use button element.
Also try remove the div element inside tbody and use data-repeater-list="items" on tbody. Move your add button outside of tbody.
The form repeater works fine in regular forms but I want to use the repeater in a table to repeat table row.
Below is my code:
here is my js
here is an image of my table
I want to add a new row when the plus button is clicked. I have test this with regular form fields it works fine. but once i put it in the tr and td tags, when i click on the plus button, it doesn't respond.
Below is the result i want to achieve.
![Uploading expected result.png…]()
The text was updated successfully, but these errors were encountered: