Bear Bibeault wrote:Using jQuery -- and there is no valid excuse not to -- the check is pretty simple:
It's kinda confusing for the value of green to be "blue". Also, simple names like "color" do not make good id values.
Without jQuery, you'll need to find and loop through the options to find the one with the selected attribute. Life is too short for that nonsense.