Change theme of Collapsible set list view using jquery.
Hi
I have used Jqm Collapsible set list view and it is working fine.
list view
My requirement is that differentiates last update list view.
My list view code is :
- <div data-role="collapsible-set" data-theme="a" data-content-theme="a">
- <div data-role="collapsible" id="div_1">
- <h3>ALL</h3>]
- <p>
- <select name="onoff_switch_1" id="onoff_switch_1" data-role="slider" data-mini="true" onchange="switch_status(this.value,1,'div_1');">
- <option value="off">Off</option>
- <option value="on">On</option>
- </select>
- </p>
- </div>
- <div>
I have tried to change of theme is :
- function switch_status(sts,index,col)
- {
- alert(col);
- $("#"+col).removeAttr('data-theme');
- $("#"+col).attr('data-theme','b');
- }
Thanks,
Hardik