【发布时间】:2018-02-26 08:59:52
【问题描述】:
大家好,我只是想问一下如何制作 ajax 以防止在我的 html 表单页面中加载页面我想要阻止加载的输入是带有提交类型和提交值的按钮标签
在我的例子中,这是我的 html 代码:
<div class="one">
<label>living room<span></span></label>
<div><button type="submit" name="submit" id="one" class="test_1" value="one"><p>Click On</p></button></div> </div>
<div class="one"><li><button type="submit" name="submit" id="two" class="test_2" onmousedown="beepoff.play()" value="one_off">Click Off</button></li></div>
<div class="one">
<label>kitchen</label>
<button type="submit" name="submit" id="one" class="test_1" value="two">Click On</button>
</div>
<div class="one">
<button id="two" type="submit" name="submit" class="focus_one test_2" value="two_off">Click Off</button>
</div></form>
【问题讨论】:
-
欢迎来到 StackOverflow。请通过tour 环顾四周,阅读HELP center,然后阅读How to 、What types of questions should I avoid asking? 并提供MCVE : Minimal, Complete, and Verifiable Example。如果周围的人可以轻松阅读并理解您的意思或问题所在,他们将更愿意提供帮助:)
-
我敢打赌 OP 甚至没有写过一行代码
-
@Akintunde007 或进行了搜索:D
标签: javascript php html