I have created a form that includes the use of two tags. The issue I am facing is that every time the user clicks on them, the form gets submitted. I tried using onclick="return false" to prevent this behavior, but the values are not being sent in the URL query.
<div class="btn-group d-flex justify-content-center col-11 mx-auto" role="group">
<button type="radio" onclick="return false" name="type" value="rent" class="btn btn-lg btn-light pr-4 pl-4" id="left">YES</button>
<button type="radio" onclick="return false" name="type" value="sale" class="btn btn-lg btn-light pr-4 pl-4" id="right">NO</button>
</div>
<div class="col-11 mx-auto">
<button class="btn btn-block btn-danger">Submit</button>
</div>