當前位置:編程學習大全網 - 網站源碼 - 請教如何獲取easyui-combobox下拉菜單的多個選中值

請教如何獲取easyui-combobox下拉菜單的多個選中值

如何獲取easyui-combobox下拉菜單的多個選中值

如何獲取easyui-combobox下拉菜單的多個選中值

下面是ajax代碼:

function showProvince($pid){

$.post("city.php",{pid:$pid},

function(data){

$(".city").html(data);

});

}

function showCity(cid){

$.post("shi.php",{cid:cid},

function(data){

$(".xian").html(data);

});

}

下面是兩個php文件。主要是查詢數據庫的:

<?php

$con = @mysql_connect("localhost","root","");

if (!$con)

{

die('Could not connect: ' . mysql_error());

}

mysql_select_db("test", $con);

$cid = $_POST['cid'];

$sql = "SELECT * FROM shi where cid = $cid";

  • 上一篇:AE打開源碼後背景變成彩色的怎麽恢復源碼本事的顏色?
  • 下一篇:從澳門科技館到威尼斯人酒店怎麼坐車
  • copyright 2024編程學習大全網