I am working on a button group and need to hide the second button dynamically.
However, I am facing an issue where the first button has a 90° border. How can I adjust the code below to display button 1 with a rounded border?
If I decide to hide "button 2," the visual appearance is affected.
$("#btn1").click(function() {
$("#btn2").show();
});
$("#btn2").click(function() {
$("#btn2").hide();
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.bundle.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js"></script>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" rel="stylesheet"/>
<div class="input-group col-md-6">
<input type="text" class="form-control" placeholder="Recipient's username" aria-label="Recipient's username" aria-describedby="basic-addon2">
<div class="input-group-append">
<button id="btn1" class="btn btn-outline-secondary" type="button">Button 1</button>
<button id="btn2" class="btn btn-outline-secondary" type="button">Button 2</button>
</div>
</div>