input输入框定位select选项
来源:互联网 发布:安卓源码网站有哪些 编辑:程序博客网 时间:2024/06/06 05:53
<script>
function findinfo(){
var input_val = document.getElementById('find_location').value;
if(input_val != '')
{
var my_select = document.getElementById('location');
var sel_len = my_select.length;
for(var i = 0 ; i < sel_len ; i++)
{
if(my_select.options[i].text == input_val)
{
my_select.options[i].selected = true;
break;
}
}
}
}
</script>
<select name="location" id="location" onchange="checkinfo_location();" >
<option value="0" >全国</option>
<option value="1" >北京</option>
<option value="2" >天津</option>
</select>
搜索地区:<input type="text" name="find_location" id="find_location" value="" onkeyup="findinfo();" />
- input输入框定位select选项
- Select From List 下拉列表框定位
- 光标输入框定位和获取位置
- Python--selenium-webdriver输入框定位
- 仿微信点击回复,输入框定位到列表的底部
- 登录框定位错误
- input+select,输入+选择
- 可输入的select标签(input+select)
- div框定位(relative,absolute,fixed,static)
- SELECT input 下拉框可输入
- input限制3位小数输入
- input text表单中嵌入select选项的方法
- input输入框只输入整数两位小数
- 通过INPUT输入值选择SELECT的值
- input覆盖select实现可输入下拉框
- jquery控制input只能输入数字和两位小数
- input输入框只能输入数字且小数点后只能输入两位数字
- 【JSP页面】如何根据Select的选项来决定页面input的显示隐藏
- DataGridView导出到Excel的三个方法
- 疯狂软件2月3日Android就业班课程详细
- Robotium_ApiDemos
- SEO诊断报告之网站代码、URL和链接结构分析
- 正试图在 os 加载程序锁内执行托管代码。不要尝试在 DllMain 或映像初始化函数内运行托管代码,这样做会导致应用程序挂起。
- input输入框定位select选项
- VS2008 "当前不会命中断点。源代码与原始版本不同"解决方法
- C#控件及常用设计整理
- linux中重定向内容到文本文件中
- InvalidateRect只是增加重绘区域,在下次WM_PAINT的时候才生效
- 如何将Spring配置文件已配置的类Mock
- No 120 · android判断是否连接网络
- error RC2135 : file not found: 0
- Textarea 高度自适应 根据内容自适应高度