This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
The problem I'm having is I can't seem to get the checkbox value go into the input field. It pops up in the alert but won't go into the field. I'm obviously missing something. Here's the code snippet.
Here's the code. As you can see I look to see how many checkboxes were checked. If there was only ONE checkbox checked then I popup up the value in an alert. But when I try to put x into the field of 'returnValue' it doesn't change the input field. If you go to jsfiddle you'll see this code execute when you click a single room.
Below is all of the code (without the script tags)
and the HTML
By failing to prepare, you are preparing to fail.<br />Benjamin Franklin (1706 - 1790)
I agree with Eric -- the code is not logically organized and is stepping all over itself. I'd actually advise deleting the whole thing, taking a deep breath, figure out what you're actually trying to accomplish, and try again.