Can't seem to refresh style of <a data-role="button">
Hi there,
I open the datepicker with a <a data-rel="button"> and I change its text when a new date is selected. However, I can't seem to update the buttons style back to normal after I change its text.
- <a id="a_workout_date" href="#" data-role="button" data-mini="true" >2013-01-01</a>
- $("#input_workout_date").change(function() {
- $("#a_workout_date").text($(this).val());
- $("#a_workout_date").trigger("create");
- $("#a_workout_date").button();
- $("#a_workout_date").button("refresh");
- });
Tried all these, but can't seem to get it to work :/