Help w/ <select> and jquery on my product landing page

If you test out the project, the price says $149.99 at default and when I change the to Mouse, it is supposed to say $39.99, but it doesn’t work.
please help!! here is the link:

I think you need an eventListener for change. I don’t use jQuery much but this seems to work?

Ignore the console log and you dont need to assign variable for cost anymore but left as it.

UPDATED:

Added costs of items to the values and wrote out the value when selected. Just added a simple option to say please select or whatever you need for the starting “price”

1 Like

Thank you SOOOOO much!! I didn’t know you could do it in that little code.

1 Like