I have this script for submitting some data to my database. It works great on 1.4.2 but the template I am using requires 1.9.1 so I updated my site. The problem I am having is that I am now getting an error when I try to call the same function.
Here is my js code:
function drilldown(row_id){
var dealID = document.getElementById('dealID'+ row_id).value;
var specialnotes = document.getElementById('specialnotes'+ row_id).value;
var ready = document.getElementById('ready'+ row_id).value;
var initials = document.getElementById('initials'+ row_id).value;
var forcust = document.getElementById('forcust'+ row_id).value;
var notes = document.getElementById('notes'+ row_id).value;
$.ajax({
url: "savedrilldown.php",
type: "GET",
//pass data like this
data: {dealID:dealID,specialnotes:specialnotes,ready:ready,initials:initials,forcust:forcust,notes:notes},
cache: false,
success: function(data) {
if (data=="1")
alert("Record updated!" );
}
});
}
And here is the error that firebug is showing me:
TypeError: $ is undefined [Break On This Error]
$.ajax({
And here is what I am loading:
<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="js/jquery-migrate-1.1.1.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.9.2.min.js"></script>
Any advise would be appreciated. Thanks very much.