I seem to be locating answers here and other locations that are close to what I need -- so my apologies if I've duplicated without noticing. And I'm certain that what I've been locating can work...if I knew how to use it :)
I have 4 radio buttons on a page. They have values as 4, 7, 14, 30.
<input type="radio" id="radio1" name="length" value="4"/><label for="radio1">4 DAYS</label>
<input type="radio" id="radio2" name="length" value="7"/><label for="radio2">7 DAYS</label>
<input type="radio" id="radio3" name="length" value="14"/><label for="radio3">14 DAYS</label>
<input type="radio" id="radio4" name="length" value="30"/><label for="radio4">30 DAYS</label>
A return date is needed based on the above selection. Say if radio2 is selected, the return date will be the date selected + 7 days.
Here http://jsfiddle.net/JKGvD/525/ is a great example of this functionality however you can see I'm attempting to manipulate the 'nights' field with user input from above.
I attempted to use the $('input:radio[name=length]:checked').val();
in that Fiddle however it fails with Nan (Not a Number?) in the field.
Please alert me if any further information is needed. And thank you in advance everyone!