3 lines
149 B
JavaScript
3 lines
149 B
JavaScript
htmx.on('#form', 'htmx:xhr:progress', function(evt) {
|
|
htmx.find('#progress').setAttribute('value', evt.detail.loaded / evt.detail.total * 100)
|
|
});
|