I have an html table of 'members' and on each row an 'edit' button.
The edit button opens a Bootstrap modal with a form.
I would like to pre-fill the form fields, based on the values (name, email, mobile) in the relevant row. I used code from this answer (not the accepted answer but this function from @ajkochanowicz):
$('.header-link').click(function(e) {
$('.modal-header h4').html($(e.target).html())
})
Passing Data to Bootstrap Modals
... but it only allows for a single value to be passed.
how can I pass multiple values to the modal form and inject them into the relevant fields in the modal form?