So with my code I'm looking to take a value out of a checkbox and put it into a text field. The code is in JSFIDDLE. See the link below. I use the latest JQuery as well.
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