| $( selector, [ context ] ) | ใช้อ้างอิงถึง element ที่มี selector ตรงตามที่กำหนด |
|---|
syntax:$( selector, [ context ] )
return type:element
content:ใช้อ้างอิงถึง element ที่มี selector ตรงตามที่กำหนด ( โดยถ้ากำหนด context มาด้วย จะหมายถึง จะอ้างอิงถึงเฉพาะ ที่มี selector ตรงตามที่กำหนด และต้องเป็น child element ของ context นั้นด้วย )
example:$("input:checkbox", "#form").click ( function ( event ) { alert ( "Click Event of checkbox in form that have id is form" ); } );