已知一个select里面的option value (和option的text不同),怎么
set与value 相应的option为"selected"?
s**********i 发帖数: 711
2
don't understand your question.
【在 xt 的大作中提到】 : 已知一个select里面的option value (和option的text不同),怎么 : set与value 相应的option为"selected"?
xt 发帖数: 17532
3
See if I have a select like this:
Then if I dynamically set the value "s" be 1 or 2, how do I set
the corresponding options be selected?
【在 s**********i 的大作中提到】 : : don't understand your question.
s**********i 发帖数: 711
4
【在 xt 的大作中提到】 : : See if I have a select like this: : : Then if I dynamically set the value "s" be 1 or 2, how do I set : the corresponding options be selected?
h*****n 发帖数: 439
5
man, he said to "dynamically" set the selectedIndex, not "statically".
improve your reading. (not offending, no argue please)
【在 s**********i 的大作中提到】 : :
h*****n 发帖数: 439
6
I suggest you use MSDN to find the solutions for this kind of simple
questions. It will be much faster for you. If you don't have MSDN
installed on local computer, go to http://www.msdn.microsoft.com
selectedIndex
s***f 发帖数: 173
7
需要指象ID在OPTION VALUE中。
【在 xt 的大作中提到】 : 已知一个select里面的option value (和option的text不同),怎么 : set与value 相应的option为"selected"?
s**********i 发帖数: 711
8
then dynamically put the "selected" to where it should be,
hohoho!
【在 h*****n 的大作中提到】 : man, he said to "dynamically" set the selectedIndex, not "statically". : improve your reading. (not offending, no argue please)