i have a problem in setting the ‘data-theme’ and ‘data-collapsed’ dynamically at run time, i used:
$(selector).attr('data-collapsed',false)
and
$(selector).attr('data-theme',b)
but it doesn’t work, how to solve this problem using jQuery or javascript?
You can do the with pagebeforecreate event
Example:
JS
HTML