问题描述
- DropDownList下拉框 onchange事件中,获取字符串Desc 的前三个字符应该怎么写
-
数据绑定:ddlSelect.Attributes.Add("onchange", "onclick_select(this.options[this.selectedIndex].value)");
这个只能获取到 ID ,this.options[this.selectedIndex].value) 要怎么修改才能获取到Desc de 前三个字符 ?
解决方案
通过JS截取字符串,或者后台获取值得时候截取字符串
时间: 2024-08-30 22:13:26