php juery ajax 传值

<script src="__PUBLIC__/jquery-1.11.2.min.js" type="text/javascript"></script>

 

 

 

<script type="text/javascript">





$(document).ready(function(){

  $("#s_uaid").change(function(){

  var value=$("#s_uaid").val(); 

   alert (value);

  htmlobj=$.ajax({url:"__PUBLIC__/getid.php",async:false,data:{value:value}});

  $("#s_gid").html(htmlobj.responseText);

});

});





</script>

  

 

 

 

<select id="s_uaid" onclick="reId()" onchange="selectInput(this)">  

<option value="" >---选择管理---</option>

<foreach name="select_ua" item="vo">

<option value="{$vo.uid}" >---{$vo.username}---</option>

</foreach>

</select>



<select id="s_gid" onclick="reId()">  

<option value="" >---选择分组---</option>

  

 

 

<?php 







echo "<option value='123123'>123123</option>";

echo "<option value='".$_GET['value']."'>".$_GET['value']."</option>";

  

你可能感兴趣的:(Ajax)