首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Eclipse开发 >

easyui combobox从列表里选中的值可以获取到,手动输入的值获取不到解决方法

2012-08-10 
easyui combobox从列表里选中的值可以获取到,手动输入的值获取不到scriptfunction wacOutFormSubmit(){a

easyui combobox从列表里选中的值可以获取到,手动输入的值获取不到
<script>
  function wacOutFormSubmit()
{
alert($('#name').combobox('getValue'));//手动获取不到。
var currentPage=document.getElementById("pageResult.currentPage");
currentPage.value=1;
document.wacOutForm.submit();

</script>
<s:form id="wacOutForm" name="wacOutForm" action="wac_out_search" method="post">
  <input id="name" class="easyui-combobox" name="wacTcOut.comTcGoods.name" style="width:120px;">
  <a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="wacOutFormSubmit()" style="margin: 15px 5px 15px 10px;"><s:text name="queryBtn"></s:text></a>
</s:form>

[解决办法]
换成$('#name').combobox('getText')

热点排行