Change theme of Collapsible set list view using jquery.

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 :

  1. <div data-role="collapsible-set" data-theme="a" data-content-theme="a">
  2.       <div data-role="collapsible" id="div_1">
  3.       <h3>ALL</h3>]
  4.                    <p>
  5.              <select name="onoff_switch_1" id="onoff_switch_1" data-role="slider" data-mini="true" onchange="switch_status(this.value,1,'div_1');">
  6. <option value="off">Off</option>
  7. <option value="on">On</option>
  8. </select>
  9.     </p>
  10. </div>
  11. <div>
I have tried to change of theme is :

  1. function switch_status(sts,index,col)
  2. {
  3. alert(col);
  4. $("#"+col).removeAttr('data-theme');
  5. $("#"+col).attr('data-theme','b');
  6. }


Thanks,
Hardik