jQuery Raion, Select, CheckBox selector function
Radio
jQuery("input[type=checkbox][name='fbCqscsf.cqzdycqk']").not("[value=1]").attr("checked","");var item = $('input[@name=items][@checked]').val();$("input[@type=radio]").attr("checked",'2');  $('input[@name=items]').get(1).checked = true;
the_value = jQuery('#radio_form input:radio:checked').val();
$("input[@name='rdio']:checked").val()
$("#genera :not(option:first)").remove(); // Delete select except the first one than the other  option Item  
Select
jQuery("#wgpz option[value='$!wgpz']").attr("selected",true)
$('#select_id')[0].selectedIndex = 1;var item = $("select[@name=items] option[@selected]").text();$("#sel").attr("value",'-sel3');
not function
the_value = jQuery('#radio_form input:radio:checked').val();
selectionCondition.not($(this)).attr("checked","");
IE browser version detection
var isVesion = jQuery.browser.msie && (jQuery.browser.version == "6.0") && !jQuery.support.style;
Delete the first line of the outer table in addition to all rows of the records .
jQuery("#ywmcjlList tr:not(:first)").remove();
$("someTableSelector").find("tr:gt(0)").remove();
jQuery to determine whether the hidden element
$("#integration").is(":hidden")
//jQuery Let Div Timing hidden
var timer = setTimeout("$('#alertmsg').css('display','none')",3000);
clearTimeout(timer);
 var dialogTop  = Dialogs.focusedWindow.dialog[0].style.top;
 var dialogLeft = Dialogs.focusedWindow.dialog[0].style.left;
 var top =  e.clientY - parseInt(dialogTop);
 var left = e.clientX - parseInt(dialogLeft);
 jQuery("#demo").css("top", top + "px").css("left", left + "px").fadeIn("fast");
To find the back of each paragraph next to sibling
// Filtering Radios group selected radio var pramotion = $( "input[type=radio][name='" +name+ "_" +id+ "']" ); var checked = pramotion.filter( "input:checked" ); checked.next( "label" ).show(); pramotion.not( "input:checked" ).next( "label" ).hide(); pramotion.not( "input:checked" ).show(); analogyRadio.next( "img" ).hide();
counteract.siblings().next( "img" ).hide();
// To obtain additional promotions ( Platform, shops ) With flowers-Radio box
var filterRadio = counteractVolumeRadio.filter($( "input[name!='" +fashion+ "'][value='"+sequence+ "']" ));
var genera = $( "#genera" );
var jsonCategory = $!shopcategory;
jQuery.each(jsonCategory, function (index,sole){
genera.append("<option value=" +sole.typecode+ ">" +sole.typename+ "</option>" );
})
If the attribute name contains "-" so, you must use quotation marks:
jQuery Code :
$(this).is(':checked')//jQuery CSS Style settings $("p").css({ color: "#ff0011", background: "blue" });$("p").css({ "margin-left": "10px", "background-color": "blue" });
$(this).css("border","2px dashed #000000");
$("input[type=submit]").css({height:"30px",width:"40px"});
$("p").css({"background-color":"yellow","font-size":"200%"});
$(this).css({
width: function(index, value) {
return parseFloat(value) * 1.2;
},
height: function(index, value) {
return parseFloat(value) * 1.2;
}
});
$('div:eq(0)').css({
'font-size' : '2em',
'color' : '#cc00ff'
}); $("p").css({
"color":"white",
"background-color":"#98bf21",
"font-family":"Arial",
"font-size":"20px",
"padding":"5px"
}); var item = $( 'input[@name=items][@checked]' ).val();
$( "input[@type=radio]" ).attr( "checked" , '2' );
$( 'input[@name=items]' ).get(1).checked = true ;
the_value = jQuery( '#radio_form input:radio:checked' ).val();
$( "input[@name='rdio']:checked" ).val()
jQuery Raion, Select, CheckBox selector function的更多相关文章
- JQuery操作select checkbox radio总结
		JQuery是一个非常强大的工具,所以我必须找到它最方便的方法,嘻嘻 Select CRUD: Select搜: 1.val值: $("#selectid").val(); ... 
- jquery 操作select,checkbox,radio (整理)
		在工作中经经常使用到select,checkbox,radio,今天有点空暇就整理一下,免得以后用的时候还要又一次找. 操作select下拉框 -- 获取值或选中项: 1, $("#sele ... 
- Jquery获取select,dropdownlist,checkbox下拉列表框的值
		jQuery获取 Select选择的Text和Value: 语法解释: 1. $("#select_id").change(function(){//code...}); ... 
- Jquery操作radio,checkbox,select表单操作实现代码
		一 .Select jQuery获取Select选择的Text和Value: 1. $("#select_id").change(function(){//code...}); / ... 
- Jquery操作select、checkbox、radio详细讲解
		一 .Select jQuery获取Select选择的Text和Value: 1. $("#select_id").change(function(){//code...}); / ... 
- jquery  radio、 checkbox、 select 操作
		转载:http://www.haorooms.com/post/checkandselect $("input[id^='code']");//id属性以code开始的所有inpu ... 
- jQuery设置 select、radio、checkbox 默认选中的值
		<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ... 
- jquery操作select(取值,设置选中)
		最近工作中总出现select 和 option问题,整理一下,内容大部分源于网络资料 一.基础取值问题 例如<select class="selector"></ ... 
- jquery操作select(增加,删除,清空)
		jQuery获取Select选择的Text和Value: $("#select_id").change(function(){//code...}); //为Select添加事件, ... 
随机推荐
- https封装类,支持get/post请求
			所需jar:commons-logging-1.1.3.jar.httpclient-4.3.1.jar.httpcore-4.3.jar package com.onlyou.microfinanc ... 
- redis 内存
			ziplist:http://blog.csdn.net/benbendy1984/article/details/7796956 redis 内部存储结构:http://www.searchtb.c ... 
- 构建单页Web应用
			摘自前端农民工的博客 让我们先来看几个网站: coding teambition cloud9 注意这几个网站的相同点,那就是在浏览器中,做了原先“应当”在客户端做的事情.它们的界面切换非常流畅,响应 ... 
- 【原创】jmeter3.0在beanshell中输入中文乱码以及字体大小的更改
			我使用的是最新的jmeter3.0版本,新建一个beanshell sampler,在里面输入中文,发现显示的是乱码,而且字体非常小,看着吃力,调研了一下,可以在bin/jmeter.properti ... 
- Atitit.guice3 ioc  最佳实践 o9o
			Atitit.guice3 ioc 最佳实践 o9o 1. Guice的优点and跟个spring的比较 1 2. 两个部分:::绑定and注入@Inject 1 3. 绑定所有的方法总结 2 3. ... 
- paip.java c++得到当前类,方法名称以及行号
			paip.java c++得到当前类,方法名称以及行号 作者Attilax 艾龙, EMAIL:1466519819@qq.com 来源:attilax的专栏 地址:http://blog.csdn ... 
- 深入理解HTML5:语义、标准与样式(勇猛精进早登大师殿堂创最优品质交互)
			深入理解HTML5:语义.标准与样式(勇猛精进早登大师殿堂创最优品质交互) [美]布拉德福(Bradford,A.) [美]海涅(Haine,P.)著 高京译 ISBN 978-7-121-20552 ... 
- Windows Error Code(windows错误代码详解)
			0 操作成功完成. 1 功能错误. 2 系统找不到指定的文件. 3 系统找不到指定的路径. 4 系统无法打开文件. 5 拒绝访问. 6 句柄无效. 7 存储控制块被损坏. 8 存储空间不足,无法处理此 ... 
- el表达式的function标签
			使用el调用Java方法 1:EL表达式语法允许开发人员开发自定义函数,以调用java类的方法. ~示例:${el:method(params)} ~在EL表达式中调用的只能是java类的静态方法. ... 
- Thinking in Java from Chapter 15
			From Thinking in Java 4th Edition. 泛型实现了:参数化类型的概念,使代码可以应用于多种类型.“泛型”这个术语的意思是:“适用于许多许多的类型”. 如果你了解其他语言( ... 
