문제

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?

도움이 되었습니까?

해결책

You can look through the Data Attribute Initialisation article from the Kendo docs.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top