looks like you are bootstrap 5, the class name "d-none" is used to hide elements. add this to hide, remove to show
$("#id").addClass("d-none"); // hide
$("#id").removeClass("d-none"); // show
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Please I have two buttons on my forms, the first is to Process while the Second is to Submit.
How do I handle this in the JavaScript.
My Html is pasted below
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<button type="button" class="btn btn-primary" onclick="ReceiptDialog(this, 'ReceiptTypeCode');">Process</button>
<a href="#dialog3" class="btn btn-primary" style="float:right" title="Confirm" data-toggle="modal" onclick="dialog3();">Receipt</a>
</div>
</div>
Please note that ReceiptDialog() is a modal popup and diaglog3() is a modal submit confirmation (Y/N).
Any assistance will be greatly appreciated.
Best regards,
Abiodunajai
looks like you are bootstrap 5, the class name "d-none" is used to hide elements. add this to hide, remove to show
$("#id").addClass("d-none"); // hide
$("#id").removeClass("d-none"); // show