大家好,我需要一些关于ajax加载方法的帮助。基本上我需要使用Ajax load()在用户检查单选按钮后在主页面中显示一个jsp。我附上了需要显示jsp的页面图像以及我的jsp代码..请帮助! 使用AJAX加载方法加载jsp页面
<div id="verification">
<p align=center class="4f1_title" ><u>Verification Decision</u></p>
<table border="0" cellpadding="0" cellspacing="0" align=center
width="100%">
<tbody>
<tr>
<td width="10%"></td>
<td width="8%">Passed <input id="passed" type="radio"
value="P" onclick="()"></td>
<td colspan="2" width="8%">Pending <input id="pending"
type="radio" value="H" onclick="()"></td>
<td width="9%">True Hit <input id="failed" type="radio"
value="F" onclick="()" disabled></td>
<td width="13%">Parcel Returned <input id="returned"
type="radio" value="S" onclick="()"></td>
<td width="23%">Referred to Law Enforcement <input id="law"
type="radio" value="L" onclick="()"></td>
<td width="8%">Retired <input id="retired" type="radio"
value="R" onclick="()" disabled></td>
<td width="12%">Return Reason <input id="ac"
type="radio" value="C" onclick="()"></td>
<td width="10%"></td>
</tr>
</tbody>
</table>
</div>
<br>
<div align=center>
<a href="javascript:handleClick()"><u>
<div id='showhidecomment'>Show Comments</div></u></a>
<div id='chkcomments'>
</div>
</div>
<br>
这些都是'onclick =“()”'?你有什么尝试?你看过jQuery的['.load()'方法](http://api.jquery.com/load/)吗? – 2013-02-20 18:36:13
对不起,混乱..我试图使用一个处理程序来做到这一点,但我不能再去那个溃败了,我会删除它..到目前为止,我试过这个,但它不工作.. $(document).ready(function (){('#verification')。find('#passed'){ $(“radio”)。click(function(){(“#showhidecomment”)。load(“sample.jsp” ); { } }); – Fahad 2013-02-20 18:55:02