ปกติเมื่อมีการเรียกใช้ไฟล์ jQuery จะเรียกใช้ไฟล์ที่อยู่ใน Server ของเรา ตัวอย่างการใช้งาน jQuery ทั่วไป
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
$(function(){
// แทรกโค้ด jQuery ของคุณ
});
</script>
มีอีกวิธีหนึ่งที่เราสามารถเรียกใช้ คุณสมบัติของ jQuery ผ่าน Google API ดังนี้
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
google.load("jquery", "1.3.2");
</script>
<script type="text/javascript">
$(function(){
// แทรกโค้ด jQuery ของคุณ
});
</script>