for the following form
A
give id filter to select
filter
$(document).ready(function(){ var text_val; $('#filter').change(function(){ text_val = $(this).val(); $('#field').attr('value',text_val); return false; }); });