[Solved] Pjax and modal window

I’ve a view with three pjax contents (rendered files) one of these three files contains the structure for a modal window, at the click of a hidden button I call the modal window and pass the parameters with javascript code, the modal window opens but then everything remains locked? Why, thanks

p.s.
I noticed that at every request, duplicate the html structure of the modal window…

[solved]
I was calling a trigger in the wrong place…