การใช้งาน Jquery เบื้องต้น
ในบทความนี้จะพูดถึงเรื่องการใช้งาน jquery แทน javascript แบบเดิมๆ กันขั้นแรกต้องโหลด jquery ซึ่งเป็น JavaScript Library มาก่อนโหลดได้่ที่
1. http://docs.jquery.com/Downloading_jQuery (เลือกเอาเวอร์ชั่นล่าสุด)
2. เมื่อได้ไฟล์ jquery.js มาแล้ว ก็เอามันใส่ในเอกสาร html ของเรา
ตามตัวอย่าง
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
// we will add our javascript code here
</script>
</head>
<body>
<!-- we will add our HTML content here -->
</body>
</html>
การอ่านค่าจาก id ของ tag html ด้วย jquery
วิธีอ่าน ค่า และ เชตค่า input field ใน form ด้วย Jquery
มีข้อส่งสัยโพสถามได้ที่ บอร์ด