I would like to use a modal to allow users to edit a record so need to pass the id in when the modal opens.
I found some code for a previous version of materialize (0.98.2) but I can't get it to work for 1.0.
Here is the code that works for 0.98....
$('.modal').modal({
ready: function(modal, trigger) {
modal.find('input[name="nom"]').val(trigger.data('nom'))
}
});