JQMobile - Problem with problem with change text by a href on Click event

JQMobile - Problem with problem with change text by a href on Click event

Hello, i have got  a problem with change text by a href on Click event.

If I update text..text is changed, but button loose formatting. I tried also without $('ul').listview('refresh'); function, but is it still same.

What can I do wrong?

Thanks for any help.


  1. $("#soundBtn").live("click",function(event, ui){
  2. $('#soundBtn').text('Play sound');
  3. pauseAudio();
  4. $('ul').listview('refresh');
  5. });

  6. <div data-role="navbar" class="nav-glyphish-example" > 
  7. <ul> 
  8. <li><a data-icon="custom" id="vibrateBtn">Vibrate</a></li> 
  9. <li><a data-icon="custom" id="soundBtn">Pause sound</a></li> 
  10. <li><a href="#" data-icon="custom" id="abortBtn">Abort game</a></li> 
  11.  
  12. </ul> 
  13. </div>