Javascript toggle button with Jquery Mobile -


Please know how to work this toggle button according to code below. It works only after the first click and then the button does not have a value

      

Hope this works Is:

  ($ (this) .attr ('value') == 'top up') {$ (this) .val ('stop'); $ (this) .prev ('.ui-btn-inner') ('.Ui-btn-text') .html ('stop'); $ (this). Button Marcup ({theme: "c"});} and $ (This) .val ('stop') ; $ (This) .prev ('.uiui-btn-inner'). Children ('.ui-btn-text') .html ('stop'); $ (this). Button Markak ({Theme: "B "});}});    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

jsp - Google line chart x-axis shrinks on transition -

java - Reaching JTextField in a DocumentListener -