【发布时间】:2013-03-20 03:51:27
【问题描述】:
如何在 Jquery Mobile 的“pageshow”中获取当前页面的表单 ID?我可以通过这种方式获取当前活动页面的id。
$(document).on('pageshow', function () {
var id = $.mobile.activePage.attr('id');
});
【问题讨论】:
标签: javascript jquery html css jquery-mobile
如何在 Jquery Mobile 的“pageshow”中获取当前页面的表单 ID?我可以通过这种方式获取当前活动页面的id。
$(document).on('pageshow', function () {
var id = $.mobile.activePage.attr('id');
});
【问题讨论】:
标签: javascript jquery html css jquery-mobile
可以这样做:
$(document).on('pageshow', function () {
var formID = $.mobile.activePage.find('form').attr('id');
});
【讨论】: