【发布时间】:2014-06-02 16:33:18
【问题描述】:
我正在尝试更改StudentOrEmployeeId 的标签文本,当前为“名称”。我的更改事件正在运行,但无法更改名称。我可能遗漏了什么
colNames: ['IssueType', 'Issued To','Name']
{ name: 'IssueType', index: 'IssueType', align: 'center', editable: true, edittype: 'select',
editoptions:
{
value: "0:Student;1:Teacher",
dataEvents: [{
type: 'change',
fn: function (e) {
if ($('#IssueType option:selected').val() == 0)
{
jQuery('tr#StudentOrEmployeeId > td.CaptionTD').html('Student Id')
}
else
{
jQuery('tr#StudentOrEmployeeId > td.CaptionTD').html('Employee');
}
}
}], }
},
{ name: 'StudentOrEmployeeId', 'index': 'StudentOrEmployeeId', editable: true, },
【问题讨论】:
标签: jqgrid