| each ( function ) | ใช้วนลูปแต่ละ element ภายใน set |
|---|
syntax:each ( function )
return type:void, element
content:ใช้วนลูปแต่ละ element ภายใน set โดย function ที่กำหนดจะมี parameter จำนวน 1 ตัว คือ ตำแหน่งของ element
example:$("img").each( function(index) { alert ( "Element at" + index + " have id : " + this.id ); });