User1918509225 posted
Hi Chaplain,
OnDemand in AjaxTabContainer means Whether to render/load tabs onDemand
or all at page load.
When you set OnDemand as false,it will load all the content in each tab,while if you set OnDemand as true,if it will just load the content which you click the tab.
So if you when you set the onDemand as false,it will not load the content in the tab if you don't click it. your javascript function will not work.
I suggest that you can set a breakpoiny on the javascript ,and press F12 to debug .check if it has any error message.
Best Regards,
Kevin Shen.