Code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
----
function changeTime(items){
var form2 = document.form2;
var from = Date.UTC(form2.from_yyyy.value, form2.from_mm.value, form2.from_dd.value, form2.from_hh.value) / 1000;
var to = Date.UTC(form2.to_yyyy.value, form2.to_mm.value, form2.to_dd.value, form2.to_hh.value) / 1000;
[COLOR="red"]$.ajax({[/COLOR]
type: "GET",
url: "js/changeTime.php",
dataType: "html",
contentType: "html",
data: "items="+items+"&from="+from+"&to="+to
});
}
The first part is the library, and the second the function that keeps throwing me this error..
Code:
$ is not a function. Line 51
Line 51 is highlighted, above, in red. I can't seem to figure out why it's spitting that error out at me, I have the library loaded and other JQuery functions are working fine. This is running off a webserver on my laptop (Apache 2.2.11).