Hi Samith As we discussed offline you can set the value of select item to the file name and at the onselect event you can load that particular js and call some function in it. But there needs to be a function with same name in each file to make it work.
Thanks & Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Tue, Aug 12, 2014 at 10:27 AM, Samith Dassanayake <[email protected]> wrote: > Hi, > I have a form with a drop down element. Based on the selected value of the > drop down I want to dynamically add form elements from a another file, > which contains the remaining form elements and validation functions for > those elements. For each value in the drop down, we have a separate file > which contains the remaining part of the form and validation function based > on the selected drop down value. > Is it possible to dynamically load elements and functions as above > scenario? If is it possible what the best way to do it? > > Thanks > > -- > Best Regards > > Samith Dassanayake > Software Engineer, WSO2 Inc. > > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
