我如何重新设计(jQuery Mobile)a <button type="submit" />
这是一个在div中加载的ajax:
$("#containerDiv").load("pageWhichContainsTheButton.html");
按钮显示为简单的html按钮。
我读到其他组件有自己的重新渲染功能:.listview()等等。
是否有.button()函数或我可能使用的其他函数?
我不想手动应用“移动式”课程。
答案 0 :(得分:2)
你必须告诉JQM应用它的魔术样式,在加载成功后尝试这个:
$("#containerDiv button").trigger("create");
希望这有帮助