Home  >  Article  >  Web Front-end  >  Easy ui problem, please ask for help online_html/css_WEB-ITnose

Easy ui problem, please ask for help online_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:55:521132browse

158bc45e97881d374fc53d108c7aca9eAssigned to 01c3ce868d2b3d9bce8da5c1b7e41e5b

This is a row in the datagrid of easy ui. I used a click event to load this combobox. I would like to ask What method can be used to get the value of this combobox?


Reply to discussion (solution)

getEditor: Get the specified editor, the options contains two properties:
index: the row index. (The index of the row being edited, starting from 0)
field: the field name. (The edited column name, configured by column)

var ed = $('#dg').datagrid('getEditor', {index:1,field:'svrCustNo'});var value=$(ed.target).combobox('getValue')alert(value)


Check out the API, http://www.jeasyui.com/documentation/index.php

ed The output is an object type and the value is empty. What is it? The reason

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn