我有两个文件myPage.html下,PageLogic.js基于用户选择了他的兴趣(下拉/单选按钮) step_2事业部是如何在使用jquery动态加载html到div?
HTML页面中包含的多步的形式
在第一步可见的(步骤2的形式是每个感兴趣的话题不同)
Step_2结构是这样
<div id="step_2">
<div id="interestTopic_1">
Long html with different form fields......
</div>
<div id="interestTopic_2">
Long html with different form fields......
</div>
<div id="interestTopic_3">
Long html with different form fields......
</div>
<div id="interestTopic_4">
Long html with different form fields......
</div>
<div id="interestTopic_5">
Long html with different form fields......
</div>
</div>
我想DIV动态基于v添加“interestTopic”的div step_2可以从step_1中选择,每个interestTopic可以包含不同的文本字段/输入controls.How可以动态地添加此div,也希望在div中使用输入控件在相同的js从我添加该div .. 这是可能的没有服务器调用?我想简单的隐藏/显示,但是当你加载一个页面,然后填写第一种形式长HTML页面事业冻结1-2秒
仍面临什么问题? –