Javascript JQUERY-将所选复选框移动到另一个页面
现在真的需要一些帮助!我是javascript的新手,完全被卡住了。如果有人能抽出时间来帮我写一些javascript,我将不胜感激 我正在使用JQUERY和PhoneGap创建一个移动应用程序。我有一个创建您自己的待办事项列表功能。基本上,有人在一页上选择选项,然后将它们添加到另一页的待办事项列表中 下面是一些HTML示例:Javascript JQUERY-将所选复选框移动到另一个页面,javascript,jquery,html,checkbox,Javascript,Jquery,Html,Checkbox,现在真的需要一些帮助!我是javascript的新手,完全被卡住了。如果有人能抽出时间来帮我写一些javascript,我将不胜感激 我正在使用JQUERY和PhoneGap创建一个移动应用程序。我有一个创建您自己的待办事项列表功能。基本上,有人在一页上选择选项,然后将它们添加到另一页的待办事项列表中 下面是一些HTML示例: <div data-role="page" id="CreateChecklist"> <div ="header"> <div class
<div data-role="page" id="CreateChecklist">
<div ="header">
<div class="logo"></div>
</div>
<div data-role="header">
<h1>ToDo Checklist</h1>
</div>
<div data-role="content">
<div data-role="collapsibleset" data-theme="a" data-content-theme="a">
<div data-role="collapsible" class="checklist1" id="checklist1">
<h3> Support Network </h3>
<p><fieldset data-role="controlgroup" name="checklist1" class="checklist2">
<input type="checkbox" name="checklist1" id="checklist1_0" class="checklistA" `enter code here`value="1" />
<label for="checklist1_0">Create and mobilize support network</label>
<input type="checkbox" name="checklist1" id="checklist1_1" class="checklistA" value="1" />
<label for="checklist1_1">Set up meeting to discuss intervention logistics</label>
<input type="checkbox" name="checklist1" id="checklist1_2" class="checklistA" value="1" />
<label for="checklist1_2">Assign a "detail person"</label>
<input type="checkbox" name="checklist1" id="checklist1_3" class="checklistA" value="1" />
<label for="checklist1_3">Designate the Intervention Facilitator</label>
<input type="checkbox" name="checklist1" id="checklist1_4" class="checklistA" value="1" />
<label for="checklist1_4">Make clear to not alert the person of concern</label>
<input type="checkbox" name="checklist1" id="checklist1_22" class="checklistA" value="1" />
<label for="checklist1_22">Chair person creates an "opening" and "closing" dictation</label>
<input type="checkbox" name="checklist1" id="checklist1_24" class="checklistA" value="1" />
<label for="checklist1_24">Create a list of personal support options (Al-Anon, therapy, etc)</label>
</fieldset>
人员选中复选框后,单击按钮:
<a href="#ToDoChecklist" id="add">
<button>Submit</button></a>
然后,我需要将选定的检查表添加到其他页面:
<div data-role="page" id="ToDoChecklist">
<div ="header">
<div class="logo"></div>
</div>
<div data-role="header">
<fieldset data-role="controlgroup" name="checklist2" class="checklist2" id="checklist2">
</fieldset>
</div>
<div data-role="content">
<h3> Content </h3>
</div><a href="#TakingAction">
<div data-role="footer">
<h1>Back - Taking Action</h1>
</div></a>
</div>
据我所知,如果没有对jquery changePage方法进行某种回调,就无法将元素从当前页面移动到javascript中尚未加载的页面。取而代之的是考虑在中传递信息
href="#ToDOChecklist&checkbox1=selected&checkbox2=selected"
然后使用此信息填充新页面中的复选框谢谢您的回复。我将签入changePage方法。这可能正是我想要的。