Closed wenzowski closed 12 years ago
First off, great gem! Thanks!
Normal input fields (as scaffolded) work beautifully:
<input type="text" name="color" id="color" value="green" >
But swapping the input field for a select breaks the link and the model stops being updated:
<select name="color" id="color"> <option value="green">Green</option> <option value="blue">Blue</option> </select>
As a newcomer to jQuery this seems odd since in the console $('#direction').val(); returns green || blue correctly.
$('#direction').val();
green
blue
total goof, not a bug.
If a default isn't set, by default no value is submitted.
<select name="color" id="color"> <option selected value="green">Green</option> <option value="blue">Blue</option> </select>
First off, great gem! Thanks!
Normal input fields (as scaffolded) work beautifully:
But swapping the input field for a select breaks the link and the model stops being updated:
As a newcomer to jQuery this seems odd since in the console
$('#direction').val();
returnsgreen
||blue
correctly.