There are reports of a new function in jQuery Mobile 1.3.0 that allows for dynamically changing button themes using JavaScript: http://jquerymobile.com/blog/2013/02/20/jquery-mobile-1-3-0-released/
However, upon attempting to run the provided code snippet, an error message is displayed in the console stating "no method '_setOption'". This has raised doubts about whether the new function is actually implemented or not.
Can anyone confirm if this new function is indeed available? If so, it would be greatly appreciated if someone could provide guidance on how to properly use it from JavaScript. Thank you.
(HTML)
<a id="btn1" data-role="button" data-theme="e" onClick="clk();">XXX</a>
(JavaScript)
function clk(){
var $btn = $('#btn1');
$btn._setOption('data-theme', 'b');
}
(Console)
Uncaught TypeError: Object [object Object] has no method '_setOption'