I get an error by following code:
jQuery.post('/user/result/generate',{
'id': getHidden()
}, function(html) {
$('#result').html(html);
});
error:
TypeError object doesn't support this property or method
this code works fine in FireFox, but not in IE.
How can I fix this?
p.s
the function getHidden() wil return a selected item id, it works very fine. I can see that this work!
I put alert() in this function... like this:
jQuery.post('/user/result/generate',{
'id': getHidden()
}, function(html) {
alert(html);
$('#result').html(html);
});
function getHidden(){
alert($("#selectId").val());
return $("#selectId").val();
}
and I get the selectId well! but not html, so this function stops by function(html), thus by the response! I put try catch in this function, get error: TypeError object doesn't support this property or method
but this function works fine after refresh the page by press F5.... so I do not understand why this function works not directly but after refresh...