I am new to Jquery and I am using Jquery to populate values in a drop down field.
Upon selection of a value from drop down, I am assigning value to a hidden field.
onSelect: function(index,row){
var val = row.value;
alert('val '+val );
$("#hid").val(val );
}
How can I assign the value to JSP variable or if I use request.getParameter("hid");
do I need to submit the form again to get the value?
Edit 1
$(function(){
$('#comb').combogrid({
panelWidth:200,
url: 'myservice',
idField:'id',
textField:'desc'
columns: [[
{field:'Id',title:'Id',width:20},
{field:'desc',title:'Desc',width:80}
]],
onSelect: function(index,row){
var val = row.value;
alert('val '+val );
$("#hid").val(val );
}
});
});