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. 微软 PowerShell Script Explorer 满血复活,正式发布

    一年前的今天,微软在其Windows PowerShell官方博客声明中止 ‘Script Explorer’ 应用程序的开发. 一年后的今天,微软为其Script Explorer注入了新的生命.一 ...

  2. 让你的CI跑起来-《持续集成》读书总结

    持续集成已经被公认为极具价值的一项工程实践.在初始化一个项目时一个重要的任务就是搭建持续集成服务器,编写构建脚本.在我工作的所有项目中都引入了持续集成机制.它已经像氧气一样成为软件开发过程中的一项工程 ...

  3. Jenkins Git 中文乱码问题解决

    解决方法: x:\Jenkins\jenkins.xml 新增蓝色粗体标记参数(-Dfile.encoding=utf-8),然后重启Jenkins服务,完毕! <arguments>-X ...

  4. com组件远程桌面rdp模块的调用

    rdp(remote desktop protocol)是一个多通道的协议,包括客户端视音传输.文件传输和通讯端口转向等等功能,通过压缩处理的数据网络传输也是相当快.我们在windows操作系统下面, ...

  5. iOS开发——高级技术&社交服务

    社交服务 Social 现 在很多应用都内置“社交分享”功能,可以将看到的新闻.博客.广告等内容分享到微博.微信.QQ.空间等,其实从iOS6.0开始苹果官方就内置了 Social.framework ...

  6. 17数据表&E-R模型&概念数据模型上-选学天轰穿大话数据库视频教程

    大纲:解剖“数据表”,戏说E-R模型,概念数据模型(E-R 到 CDM),使用PowerDesigner创建概念模型,生成逻辑数据模型 土豆超清地址: 腾讯超清地址: 百度云盘下载地址:上传ing,稍 ...

  7. RTX的api開發實例

    RTX的api開發實例 最近接觸了RTX的接口開發部份,RTX其实有很多玩法,除了可以用自帶的客戶端發消息之外還可以用PHP調用API的方式來做一些事情,下邊整理了一下分享給大家 值得提醒的是这些接口 ...

  8. Asp.Net customErrors与httpErrors的区别

    先看一下简单的对比 customErrors Asp.Net级别的错误处理程序,只处理Asp.Net应用抛出的异常(404,403,500..) 在IIS7+的服务器依然可用(IIS7之前就引进了) ...

  9. 【Android开发坑系列】之try-catch

    try { mViewPager.postDelayed(new Runnable() { @Override public void run() { getCurrentPage().render( ...

  10. (String) | String.valueOf()

    Map m = new HashMap(); Integer i = 5; String s = null; m.put("val1", i); m.put("val2& ...