| fieldSerialize ( excludeUnsuccessful ) | ใช้คืนค่า value ของ element ใน form ที่ถูก encoded แล้ว |
|---|
syntax:fieldSerialize ( excludeUnsuccessful )
return type:string
content:ใช้คืนค่า value ของ element ใน form ที่ถูก encoded แล้ว ถ้าหากว่ากำหนด excludeUnsuccessful = true หรือไม่กำหนด จะหมายรวมถึงให้ ไม่ต้องรวบรวมค่าของ unsuccessful ด้วย แต่ถ้ากำหนด excludeUnsuccessful = false จะหมายรวมถึงให้ รวบรวมค่าของ unsuccessful ( unsuccessful หมายถึง ค่าที่ไม่จำเป็นต้องถูกส่งไปยังการ submit เช่น checkbox ที่ไม่ถูกเลือก, หรือ option ที่ไม่ถูกเลือก)
example:var myText = $("#form *").fieldSerialize(false);