I want to be able to get the value of the select box, but its not working for some reason. the reason I want to do it through the attribute it because, there are multiple selections in a while loop and i had to differenate them by that way. But im open to any ideas, there are a total of 9 loops so 9 select boxes.
So none of these worked, except for var fridayOption = $('.fridaySelect option:selected').val(); but this only returned the value of the first one.
I think because the Confirm button is all the same code as well. Im not sure.
Chris Stanyon
What do you mean by the 'first one'. There is only one fridaySelect - and even if there were more than one, you're not doing anything in a loop, so it would only select the first one.
Maybe give us a little more information on what you're trying to do and we can give you a better idea of how to do it
I think because the Confirm button is all the same code as well. Im not sure.