I'm building a web app that will have a lot of forms. Most of them have fieldsets in common that I organized in subforms.
I've made a php file and a js for each subform but I can't get how to dynamically link them.
I'd like the subform file to take care of what js file it needs. Is there a way to do so?