EasyUI Forum
May 05, 2024, 06:11:07 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Multiple Field in ComboBox  (Read 9100 times)
putusundika
Newbie
*
Posts: 13


View Profile Email
« on: July 12, 2012, 05:13:30 AM »

this is how i use multiple field as textfield in a single combobox. It works for me  Smiley but Please CMIIW...  Wink


Code:
dtbase.php :
$rs = mysql_query("select id_customer,concat(firstname_customer,' ',lastname_customer) AS name
        FROM customer order by firstname_customer ASC");
$items = array();
while($row = mysql_fetch_object($rs)){
array_push($items, $row);
}
echo json_encode($items);

-------

<input name="id" style="width:300px" class="easyui-combobox" url="dtbase.php"
valueField="id_customer" textField="name" required="true">



regards
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!