When a user clicks "Add To Basket" I need some javascript to check that the size option they have selected is not "-" in the form before the actual form is submitted.
I'm probably being a complete idiot here, because that all looks very simple, but can you see where I've gone wrong? All my javascript is the same as you posted, copied exactly.