function on_post_form(){ var f = document.post_myform; var s_paramName = document.getElementById("select_paramName").value; f.action = "__APP__/index/select_infomessage-s_paramName-"+encodeURIComponent(s_paramName)+".html"; f.submit(); }
$(document).ready(function(){ $('#select_paramName').keyup(function(){ //输入框的id为search,这里监听输入框的keyup事件 $.ajax({ type:"GET", //AJAX提交方式为GET提交 url:"__APP__/index/get_search_showdiv", //处理页的URL地址 data:"s_Name="+encodeURIComponent($('#select_paramName').val()), //要传递的参数 success:function(data){ //成功后执行的方法 if(data != ""){ var ss; ss = data.split("@"); //分割返回的字符串 var layer; layer = "