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>";

  

posted @ 2015-01-10 11:06  fleam  阅读(201)  评论(0编辑  收藏  举报