Reputation: 1002
I have a function that loads a button with javascript, but I don't know how to trigger it to look like a button.
My code looks like the following:
$("#loadDiv").html("<a data-click='Event' type='button' data-role='button'>My Button</a>");
It will then only show the link "My Button". How do I then trigger it to change it into a button?
In Jquery mobile I did the following:
$("#loadDiv").trigger('create');
Anyone know how to do this is kendo ui mobile?
Upvotes: 0
Views: 411
Reputation: 1137
You can look through the Data Attribute Initialisation article from the Kendo docs.
Upvotes: 2