</> ConvertAtlas Developer Tools
Bootstrap 5 · Beginner

Yes/No Feedback

Helpful yes/no feedback buttons that lock in a thank-you message.

Requires Bootstrap 5. Add the CDN tags below to your page (styles in <head>, scripts before </body>). The downloaded file already includes them.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
<div class="card border-0 shadow-sm" style="max-width:320px"><div class="card-body">
  <h6 class="fw-bold mb-3">Was this helpful?</h6>
  <div class="d-flex gap-2" id="rbWrap"><button class="btn btn-outline-success btn-sm flex-fill" data-rb="up">👍 Yes</button><button class="btn btn-outline-danger btn-sm flex-fill" data-rb="down">👎 No</button></div>
  <div class="small text-secondary mt-2" id="rbMsg" style="display:none">Thanks for your feedback!</div>
</div></div>
document.querySelectorAll('#rbWrap [data-rb]').forEach(function(b){b.onclick=function(){document.querySelectorAll('#rbWrap [data-rb]').forEach(function(x){x.disabled=true;x.style.opacity='.5'});b.style.opacity='1';document.getElementById('rbMsg').style.display='block'}});
Free to use.This component uses Bootstrap 5 (linked above). Copy any file, or download a ready-to-open .html page with the CDN links already included.