CSMJU jQuery Mobile

เมนู
ถัดไป ก่อนหน้า

3.5 Form Elements

     e. Search input

    เป็น element ของฟอร์มใน Jquery Mobile ช่วยในการค้นหาข้อมูลต่างๆซึ่งสามารถเพิ่ม attribute ใน <input type="search">

CD ไฟล์: forms-search.html

MiniVersion

การเพิ่ม data-role="fieldcontain"
   เพื่อช่วยในการจัดกลุ่ม element ในฟอร์ม

CD ไฟล์: forms-search.html

การใช้ Theme (Theming)
   สามารถเพิ่ม attribute data-theme ใน <input>

CD ไฟล์: forms-search.html

การกำหนดค่าปุ่มล้างค่าข้อความ(Setting the clear button text)

   สามารถสร้างใน mobileinit event และ set ให้เป็น

$.mobile.textinput.prototype.options.clearSearchButtonText

การเรียกใช้ plugin textinput type="search"

$('.mySearchInput').textinput();