Home > Web Front-end > HTML Tutorial > 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
Release: 2016-06-24 11:55:52
Original
1151 people have browsed it

Assigned to

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)
Copy after login


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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template