cf7-repeatable-fields
cf7-repeatable-fields copied to clipboard
Buttons alignment and order
Let's create two options:
- Buttons alignment (left or right)
- Buttons order (+/- or -/+)
Until this is implemented you can swap the buttons by calling this in the document ready function:
function swapButtons() {
$(".wpcf7-field-group-add").each(function(index) {
$(this).after($(this).prev().detach());
});
}
By using detach
it keeps all of the events like the click handlers.