asp.net mvc, jquery dialog + select + getJson (different results in ff, ie and chrome)
- by vbobruisk
Hi everybody.
i'm using jquery 1.3.2, and have a problem in situatsuin where i fill select via getJson
$.each(data, function()
{
$("#select_elem").append("<option value='"+this.Value+"'>" + this.Value + "</option>");
});
and after, when i try to get selected value :
var sel_val = $("#select_elem");
alert(sel_val.val());
in IE it works, in FF it always shows the first value in list, in chrome it's always null.
is there any way to fix this?
Thank You !