Modal only loding once widget js

Hi all,

i am using model for crud operation.

all fine Modeal is opening etc…but when the form has other widget like imageupload or other smart widgets the modal load only first time the assets correct. By secound time the assets are not loaded. so my widet are not working on secound time. But when i refresh the page and open modal again its loading assets for the firsttime again.

I hope someone can help me with this.





Code for opening my modal

$('#modalButton').click(function (){





Thank you all.