javascript - thymeleaf - pass variable to modal -


i open modal this:

<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#upload">upload</button> 

i wondering if there way pass thymeleaf variable modal.

i found question angular.js used.

thanks!

you may try open modal dialog manually this:

$('button').click(function(){     // job     $('#upload').modal('show'); }); 

Comments

Popular posts from this blog

html - How to custom Bootstrap grid height? -

javascript - pass values from mssql to views in node -

image - python get coordinates (pixels) of corresponding points from clicks -