| text ( function ( index, text ) ) | ใช้กำหนดค่า text contents ให้กับ ทุก element ภายใน set |
|---|
syntax:text ( function ( index, text ) )
return type:void, element
content:ใช้กำหนดค่า text contents ให้กับ ทุก element ภายใน set
example:$("div").text ( function ( index, html ) { if ( index % 2 == 0 ) { return "Welcome to Function.in.th"; }else{ return "Hello, Welcome to me"; } } );