ipad打不开bt蚂蚁:如何获得select的option值 ASP
来源:百度文库 编辑:中科新闻网 时间:2024/04/29 08:45:46
<tr>
<td height="26" align="right" width=20% valign=top>请选择栏目:</td>
<td align="left" width=80%><select name="select"
onchange="File.tt.innerHTML=options[this.selectedIndex].value;"
size="1" style="border: 1px solid #E6E6E6">
<option value="UserAddSoftware.Asp" selected>软件学堂
</option>
<option value="2UserAddSoftware.Asp">硬件天地</option>
</td>
</tr>
<tr>
<td colspan="2" id="tt"><iframe id=File marginwidth="0"
framespacing="0" marginheight="0" frameborder="0" width="100%" height="300"
src=UserAddSoftware.Asp></iframe></td>
</tr>
我这里是可以获得它的值了,可是我要它值里的内容啊,它获得的值2UserAddSoftware.Asp,或UserAddSoftware.Asp,就是这些字,不是UserAddSoftware.Asp的内容,就是“UserAddSoftware.Asp”这几个字,我要UserAddSoftware.Asp的内容,也就是怎么获取它的值并且打开它值的内容。
谁知道啊,告诉我一下啊,谢谢了
<td height="26" align="right" width=20% valign=top>请选择栏目:</td>
<td align="left" width=80%><select name="select"
onchange="File.tt.innerHTML=options[this.selectedIndex].value;"
size="1" style="border: 1px solid #E6E6E6">
<option value="UserAddSoftware.Asp" selected>软件学堂
</option>
<option value="2UserAddSoftware.Asp">硬件天地</option>
</td>
</tr>
<tr>
<td colspan="2" id="tt"><iframe id=File marginwidth="0"
framespacing="0" marginheight="0" frameborder="0" width="100%" height="300"
src=UserAddSoftware.Asp></iframe></td>
</tr>
我这里是可以获得它的值了,可是我要它值里的内容啊,它获得的值2UserAddSoftware.Asp,或UserAddSoftware.Asp,就是这些字,不是UserAddSoftware.Asp的内容,就是“UserAddSoftware.Asp”这几个字,我要UserAddSoftware.Asp的内容,也就是怎么获取它的值并且打开它值的内容。
谁知道啊,告诉我一下啊,谢谢了
你想动态获得UserAddSoftware.asp的内容?这样定义你的select:
<select onchange="File.src=options[this.selectedIndex].value">
如果你嫌在iframe里打开有问题,可以做一个隐藏iframe:
<iframe id="ff" style="display: none;"></iframe>
然后onchange的时候将ff.src指向另一个页面,附加参数。该页面生成要返回的HTML结果,写回主页面的tt.innerHTML。
明白了吗?
如何获得select的option值
如何获得select的option值 ASP
select option 的取值问题
如何使鼠标停在select中option时,弹出该option所对应的内容的提示?
select 控件的option的显示问题
asp中select option的问题
vb 如何通过webbrowser控件自动填加当前网页的select 标签的option项?
html中如何把select中option的内容设成两行显示?如:
在一个表单里面有一个select和一个隐藏域,现在想根据select的option的值,
option的Select动态用法,前辈指点(我没分了,见笑)