I have a form with a select list. Each option also contains a dynamic id, which I need to capture and then use that to change a hidden input\'s value. So basically take the
$('#size').change(function(){ var id = $(this).find(':selected')[0].id; $('#changevalue').val(id); })