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的更多相关文章

  1. JQuery操作select checkbox radio总结

    JQuery是一个非常强大的工具,所以我必须找到它最方便的方法,嘻嘻 Select CRUD: Select搜: 1.val值: $("#selectid").val();     ...

  2. jquery 操作select,checkbox,radio (整理)

    在工作中经经常使用到select,checkbox,radio,今天有点空暇就整理一下,免得以后用的时候还要又一次找. 操作select下拉框 -- 获取值或选中项: 1, $("#sele ...

  3. Jquery获取select,dropdownlist,checkbox下拉列表框的值

       jQuery获取 Select选择的Text和Value: 语法解释: 1. $("#select_id").change(function(){//code...});   ...

  4. Jquery操作radio,checkbox,select表单操作实现代码

    一 .Select jQuery获取Select选择的Text和Value: 1. $("#select_id").change(function(){//code...}); / ...

  5. Jquery操作select、checkbox、radio详细讲解

    一 .Select jQuery获取Select选择的Text和Value: 1. $("#select_id").change(function(){//code...}); / ...

  6. jquery radio、 checkbox、 select 操作

    转载:http://www.haorooms.com/post/checkandselect $("input[id^='code']");//id属性以code开始的所有inpu ...

  7. jQuery设置 select、radio、checkbox 默认选中的值

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...

  8. jquery操作select(取值,设置选中)

    最近工作中总出现select 和 option问题,整理一下,内容大部分源于网络资料 一.基础取值问题 例如<select class="selector"></ ...

  9. jquery操作select(增加,删除,清空)

    jQuery获取Select选择的Text和Value: $("#select_id").change(function(){//code...}); //为Select添加事件, ...

随机推荐

  1. 配置SharePoint 2013 Search 拓扑结构

    在单台服务器上安装了 SharePoint Server 2013,并且创建了具有默认搜索拓扑的 Search Service 应用程序.在默认搜索拓扑中,所有搜索组件都位于承载管理中心的服务器上.S ...

  2. jpa 注解使用说明

    1.@Entity(name="EntityName") 必须,name为可选,对应数据库中一的个表 2.@Table(name="",catalog=&quo ...

  3. (转)Java动态代理与CGLib代理

    <br>public class UserDAOImpl{ <br><br>    public void save() { <br>        / ...

  4. paip. java resin 远程 调试 java resin remote debug

    paip. java resin 远程 调试 java resin remote debug 作者Attilax  艾龙,  EMAIL:1466519819@qq.com 来源:attilax的专栏 ...

  5. Python模拟用户登录

    # coding=utf8 import hashlib db = { 'michael':'e10adc3949ba59abbe56e057f20f883e', 'bob':'878ef96e861 ...

  6. Unity中的协程是什么?

    什么是协程? 1.协程是一个分部执行,遇到条件(yield return 语句)会挂起,直到条件满足才会被唤醒继续执行后面的代码. 2.Unity在每一帧(Frame)都会去处理对象上的协程.Unit ...

  7. ucos操作系统的内核有哪些调度方法

    1)时间片轮番调度法 假设系统中有5个任务,T1,T2,T3,T4,T5,这个时候,操作系统为每一个任务分配时间,比如说我们为T1任务分配10毫秒,为T2任务分配20毫秒,为T3任务分配5毫秒,为T4 ...

  8. [推荐]WebService开发知识介绍

    [推荐]WebService开发知识介绍 WebService开发手册  http://wenku.baidu.com/view/df3992ce050876323112128a.html WebSe ...

  9. cmdCreateViewTag

    start ).Y < grid.Curve.get_EndPoint().Y)                 {                     grid = gridTmp;    ...

  10. 针对远程Git代码库使用SSH公匙

    → 运行Git Bash→ 创建SSH公匙和私匙ssh-keygen -t rsa→ 输入SSH公匙存放文件,选择使用默认的,按Enter→ 如果已经存在,提示是否重写,输入n,按Enter→ 打开C ...