simple problem

simple problem

This code works

$("#aaa").click(function(){
    $.post("insert.html",function(data,status){
        document.getelementbyid('mas').innerHTML = data;
  });
});

This code does not work

$("#aaa").click(function(){
    $.post("insert.html",function(data,status){
        $("#mas").innerHTML = data;
  });
});

The only difference is that i have changed document.getelementbyid to $("#mas") which i thought was the correct jquery equivalent.

i expect that this is some tiny syntax error

so what is the problem