У меня не работает((( Что я не так делаю?
<script type="text/javascript">
function post()
{
var I = document.getElementById('foobar');
$.post("test.php", {action: I.value, method: "get" },function(data){
document.open();
document.body.innerHTML += data;
document.close();
});
}
</script>
<input type="text" id="foobar" />
<br>
<a href='#' onClick="post()">qw</a>