| dropdown() | ใช้คืนค่า tag select |
|---|
method:dropdown ( name, array_option, array_selected, attribute );
return type:string
special:static
content:ใช้คืนค่า tag select
example:$options = array ( "1"=>"man", "2"=>"woman" ); $attribute = " class='cssSelect' id='sex' "; echo form::dropdown ( "sex", $options, array ( "1" ), $attribute );
comment:ตัวแปร array_selected ถ้ากำหนด ข้อมูลที่ถูกเลือก เพียงตัวเดียว ก็จะเป็น dropdown แต่ถ้ากำหนด ข้อมูลที่ถูกเลือก หลายตัว ก็จะเป็น list