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.
- $("#soundBtn").live("click",function(event, ui){
- $('#soundBtn').text('Play sound');
- pauseAudio();
- $('ul').listview('refresh');
- });
- <div data-role="navbar" class="nav-glyphish-example" >
- <ul>
- <li><a data-icon="custom" id="vibrateBtn">Vibrate</a></li>
- <li><a data-icon="custom" id="soundBtn">Pause sound</a></li>
- <li><a href="#" data-icon="custom" id="abortBtn">Abort game</a></li>
-
- </ul>
- </div>