I need help with this code...
As you'll see in the javascript code, I'm trying to display a message when a user chooses pickup and the address of the pickup but it's not working and keeps giving me an error message, I've tried debugging it in chrome but I'm new to debugging and have no idea how to go about it. Someone come to my rescue.
AloegelhiPlaysR
Instead of let checkout
do: const checkout = form.checkout;
You have to define checkout in
checkValues()
. It is defined inselectType
, meaning that it only exists inside that function. You need to learn about scope. Read this to learn more.