[英]Getting Dropdown CheckBoxList values using javascript
I've got a ListBox
inside a DropDownEdit
. 我在DropDownEdit
有一个ListBox
。
Now I need to get selected values using javascript. 现在,我需要使用javascript获取选定的值。 The problem is seeing multiple instances of both in debugger, so I don't undestand how to get values I need. 问题是在调试器中看到了两个实例的多个实例,所以我不理解如何获取所需的值。
My ASP.NET
and javascript
code: https://jsfiddle.net/dgaxvxnz/ 我的ASP.NET
和javascript
代码: https : //jsfiddle.net/dgaxvxnz/
Google Chrome Debugger shows these inputs: http://textuploader.com/dslkh Google Chrome调试器显示以下输入: http : //textuploader.com/dslkh
Since my reputation is below 10, I can't post more than 2 links, so I linked DevExpress source code, I took as sample, in Debugger output above. 由于我的声誉低于10,所以我不能发布两个以上的链接,因此我在上面的Debugger输出中链接了我作为示例的DevExpress源代码。
Found a solution. 找到了解决方案。 To get chosen options I took dde_ResourceGroup_DDD_lbx_ResourceGroup_0_VI
value, which is something like this: "1|21|41|51|62|13"
. 为了获得选择的选项,我采用了dde_ResourceGroup_DDD_lbx_ResourceGroup_0_VI
值,该值类似于: "1|21|41|51|62|13"
。 Of course, it had to be parsed. 当然,必须对其进行解析。 So, the chosen values are: 2, 4, 5, 6, 13
. 因此,选择的值为: 2, 4, 5, 6, 13
。 I still wonder, why it has 1
or 2
at the beginning and after each symbol but last and what does it depend on. 我仍然想知道,为什么在每个符号的开头和之后都有1
或2
,但是最后一个有两个,它取决于什么。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.