使用javascript的Kendo UI Mobile加载按钮

时间:2013-06-06 18:09:50

标签: javascript jquery html kendo-ui kendo-mobile

我有一个用javascript加载按钮的功能,但我不知道如何触发它看起来像一个按钮。

我的代码如下所示:

$("#loadDiv").html("<a data-click='Event' type='button' data-role='button'>My Button</a>");

然后它只显示“我的按钮”链接。然后如何触发它将其更改为按钮?

在Jquery mobile中,我做了以下事情:

$("#loadDiv").trigger('create');

任何人都知道如何做到这一点是kendo ui mobile?

1 个答案:

答案 0 :(得分:2)

您可以浏览Kendo文档中的Data Attribute Initialisation article