<button type="button" class="btn btn-secondary" data-quantity="minus">-</button>
<button-disabled type="button" class="btn btn-secondary">12</button-disabled>
<button type="button" class="btn btn-secondary" data-quantity="plus"">+</button>
I am having trouble learning javascript here and have no idea where to start. I basically want the plus and minus buttons to update the count, and I have a placeholder "12" here for example.
I was thinking of using a javascript script to run upon button + or - click that would update the count based on ElementID, but I have like 100 of these products that have + and - counts to them, with the same elementID, as you can see in the code I posted above. As you can see i'm essentially using a disabled button, so that it can fit with the proper styling I have going on.
Any ideas on how I could go about this?
Edit: more code posted below
<div id="Thursday">
<!-- break from shift selector and time in shift selector -->
<br>
<p style="text-align: center">2:00 - 6:00PM | 240 Minutes<br><em>tip: tap the title of product to view best buy stock!</em></p>
<h3 style="padding-top: 4%; padding-bottom: 2%; text-align: center;">Printers Section</h3>
<div class="btn-toolbar" role="toolbar" aria-label="Toolbar with button groups" style="text-align: right; margin-bottom: 7px;">
<div class="btn-group me-2" role="group" aria-label="First group">
<button type="button" class="btn btn-secondary" onclick="window.location.href='https://www.bestbuy.ca/en-ca/search?path=soldandshippedby0enrchstring%253ABest%2BBuy&search=officejet+pro';" target="_blank">Demo - OfficeJet Pro</button>
<button type="button" class="btn btn-secondary" data-quantity="minus">-</button>
<button-disabled type="button" id="T-ojpro-count" class="btn btn-secondary">12</button-disabled>
<button type="button" class="btn btn-secondary" data-quantity="plus"">+</button>
</div>
</div>
<div class=" btn-toolbar" role="toolbar" aria-label="Toolbar with button groups" style="text-align: center; margin-bottom: 23px;">
<div class="btn-group me-2" role="group" aria-label="First group">
<button type="button" class="btn btn-secondary" onclick="window.location.href='https://www.bestbuy.ca/en-ca/search?path=soldandshippedby0enrchstring%253ABest%2BBuy&search=officejet+pro';">Sale - OfficeJet Pro</button-disabled>
<button type="button" class="btn btn-secondary">-</button>
<button-disabled type="button" class="btn btn-secondary">0</button-disabled>
<button type="button" class="btn btn-secondary">+</button>
</div>
</div>


<button-disabled>isn't a valid HTML element.disabledis an attribute on a button element (just liketype,classand such). You also need to show us what you've tried (your current JS code) and explain in more detail where you're stuck. We're glad to help you with specific issues, but we're not here to write all the code for you.