【发布时间】:2019-04-06 15:29:08
【问题描述】:
我正在制作一个在线考试网站,用户可以在其中登录进行考试。
我在问题旁边有一个面板,如果您单击按钮,则会给出不同的问题编号按钮,问题将从数据库中出现而不加载整个页面。我遇到了如何做到这一点的问题?
HTML 代码-
**<div>
<button type="button" class="btn btn-info custom" style="margin-right:16px">13</button>
<button type="button" class="btn btn-info custom" style="margin-right:16px">14</button>
<button type="button" class="btn btn-info custom" style="margin-right:16px">15</button>
</div>**
jquery ajax和php代码怎么写?
【问题讨论】:
-
当您单击每个按钮时执行 ajax 调用,它不会呈现整个页面。
-
我该如何编写ajax调用?
-
@KaunishRoy 检查下面的答案。