tried a few previous examples from here (eg. how to monitor the HTML input value changed by javascript ) and not got anywhere so asking for help 🙂
Real world example at https://beijaflor.com.au/ – add something to cart, click the cart button (it’ll pop out), and on delivery tab I want to monitor for when a date is selected. This changes the value of the hidden input field with name=”attributes[Delivery Day ]” (that’s the only unique thing I can reference) from “value” to eg “value=”01/01/2025″”.
I can’t alter any of the code that makes these changes, so need to monitor for the change itself. I assume it’s changing via javascript but adding a get/set on it doesn’t seem to do anything.
On change, I want to display or hide the checkout button (I know that bit is just a style.display = “none”; type thing).
To complicate things, it needs to reset if it date back to blank. And do the same thing on the pickup tab but with both date and time needing to be selected. But I’d be happy to just get one bit working for now.
Any tips appreciated 🙂