changing attributes with click but querySelector

I’ve written this to change the background of a div that represents hours on a daily planner. the first instance (onclick) works but the others don’t. Do I need to give each .container their own ID? and their own function?

var changeStatus = document.querySelector("#changeStatus");
var container = document.querySelector(".container");

changeStatus.addEventListener("click", function () {
  container.setAttribute("class", "filled");

82 thoughts on “changing attributes with click but querySelector”

  1. Pingback: goodrx viagra
  2. Pingback: sildenafil canada
  3. Pingback: viagra costs
  4. Pingback: real cialis pills
  5. Pingback: metformin and pcos
  6. Pingback: furosemide 40 mg
  7. Pingback: clomid in pcos
  8. Pingback: acheter cialis
  9. Pingback: cialis soft pills
  10. Pingback: viagra prank
  11. Pingback: viagra patent
  12. Pingback: lasix 40 tablet
  13. Pingback: neurontin 800
  14. Pingback: plaquenil benefits
  15. Pingback: ivermectin otc
  16. Pingback: cost of zithromax
  17. Pingback: stromectol ebay
  18. Pingback: buy azithromycin
  19. Pingback: aralen drug
  20. Pingback: molnupiravir 200mg
  21. Pingback: molnupiravir delta
  22. Pingback: clomid buy
  23. Pingback: tizanidine cost