Good day guys i just want to ask how to make a ajax to prevent page loads in my html form page the input i want to prevent from loading is button tags with type of submit and value of submit
in my case this is my html code:
<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>