码迷,mamicode.com
首页 >  
搜索关键字:selectedindex    ( 129个结果
jquery获得select选中索引
select选中索引有好多方式, 这两种方式取不到索引值这两种方式取不到索引值这两种方式取不到索引值这两种方式取不到索引值 $('#someId').find('option:selected').selectedIndex; $('#someId').find('option:selected') ...
分类:Web程序   时间:2016-09-13 16:09:11    阅读次数:157
WPF TabControl 隐藏标头
1. 将每个 TabItem 的 Visibility 属性设置为 Visibility.Collapsed 即可隐藏标头 2. 设置 TabControl 控件的 SelectedIndex 属性即可在标签页之间切换 ...
分类:Windows程序   时间:2016-09-05 20:55:05    阅读次数:2123
select
select: selectedIndex: 选中的option的索引; var option = new option('河北','hb');//新创建一个option; options.add(option);//新增一个option options.remove(要删除的索引);//删除一个o ...
分类:其他好文   时间:2016-07-23 11:44:26    阅读次数:112
iOS 怎么设置 UITabBarController 的第n个item为第一响应者?
iOS 怎么设置 UITabBarController 的第n个item为第一响应者? UITabBarController 里面有个属性:selectedIndex @property(nonatomic) NSUInteger selectedIndex; UITabBarController ...
分类:移动开发   时间:2016-07-11 16:54:37    阅读次数:147
SELECT控件操作的JS代码示例
SELECT控件操作的JS代码示例 1 检测是否有选中 if(objSelect.selectedIndex > -1) { //说明选中 } else { //说明没有选中 } 2.动态创建select function createSelect(){ var mySelect = documen ...
分类:Web程序   时间:2016-07-04 20:27:06    阅读次数:179
Respone弹窗
Response.Write("<script>window.open('default.aspx?iID=" + GridView1.DataKeys[GridView1.SelectedIndex].Value.ToString() + "','new','resizable=yes,scrol ...
分类:其他好文   时间:2016-06-07 16:13:45    阅读次数:228
js获取select标签选中的值
var obj = document.getElementByIdx_x(”testSelect”); //定位id var index = obj.selectedIndex; // 选中索引 var text = obj.options[index].text; // 选中文本 var valu ...
分类:Web程序   时间:2016-06-03 14:30:38    阅读次数:206
form表单select联动
下拉列表:二级联动菜单 Select对象的常用属性 options[]:返回所有option组成的一个数组; name:名称 value:option的value的值 length:设置或读取option的个数 selectedIndex:当前选中的option的索引号 option对象的常用属性 ...
分类:其他好文   时间:2016-05-16 01:44:31    阅读次数:525
block 做参数
三部分 1,定义函数 /* 传出类定义block */ //定义block typedef void (^ItemClickBlock)(NSInteger selectedIndex); //block 做函数参数 + (instancetype)navigationViewWithItems:( ...
分类:其他好文   时间:2016-05-13 09:18:38    阅读次数:164
JavaScript(select onchange)的网页跳转的简单实现
方法一: <select onchange="goUrl(this.options[this.selectedIndex])"> <option>==</option> <option value='http://www.csdn.net' target="_blank">csdn</option> ...
分类:编程语言   时间:2016-05-11 21:49:23    阅读次数:816
129条   上一页 1 ... 4 5 6 7 8 ... 13 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!