I want to change the button icon when I click another button. I tried with event run java script but the function which i used was wrong:
$("#add_button span.ui-icon").addClass("ui-icon-minus").removeClass("ui-icon-plus")
And how to add more button icons. Lock, Unlock for an example?