I am getting $.ajax is not defined with firebug - maybe missing bracets? any ideas?

<script language="javascript" type="text/javascript">

function get_place(jack)
{
    $.ajax({
       type: "POST",
       url: "fruit.php", 
       beforeSend: function () {
      $("#city").html("<option>Loading ...</option>");
        },
       data: "cartowner="+cartowner,
       success: function(msg){
         $("#city").html(msg);
       }
       });
} 
</script>

Mark this closed!!!!! :)

In the future, you can mark a question solved by clicking the link that appears beneath the reply editor.

future, you can mark a question solved by clicking

thank you miss dani

thanks alot i spent 4 hours in serchin my error

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.