由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
BuildingWeb版 - HTML问题2
相关主题
help, project due tomorrow!!![转载] Javascript: pull-down list to pop-up win
求教HTML的选择下拉框怎么实现layer question
请教高手一个javascript 中使用form - select 的问题how to open a new window when pick a selection in the List/Menu
How to get values of multiple selectRe: how to open a new window when pick a selection in the List/Menu
Help: document.getElementById(elem).innerText problem? 请教 Dual ListBox 的问题
SELECT的options表太长帮我看看这个php函数问题
怎么把options变成横排新手求救
javascript auto complete issueNeed a name for a real estate website
相关话题的讨论汇总
话题: option话题: value话题: selected话题: choice
进入BuildingWeb版参与讨论
1 (共1页)
xt
发帖数: 17532
1
已知一个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)

1 (共1页)
进入BuildingWeb版参与讨论
相关主题
Need a name for a real estate websiteHelp: document.getElementById(elem).innerText problem?
有什么办法吗。SELECT的options表太长
html form中怎么把options变成横排
如何通过Cascading Select elements收集用户的选择信息javascript auto complete issue
help, project due tomorrow!!![转载] Javascript: pull-down list to pop-up win
求教HTML的选择下拉框怎么实现layer question
请教高手一个javascript 中使用form - select 的问题how to open a new window when pick a selection in the List/Menu
How to get values of multiple selectRe: how to open a new window when pick a selection in the List/Menu
相关话题的讨论汇总
话题: option话题: value话题: selected话题: choice