How to initiate a date picker when template is loaded remotely from controller action
Since your controller returns json you'll probably have a Javascript function that calls this controller so you can initialize it at the moment you receive the html.

Besides that you can as well include Javascript in your Craft::$app-&gt;getView()-&gt;registerJs class.