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添加事件, ...
随机推荐
- HBase中MVCC的实现机制及应用情况
MVCC(Multi-Version Concurrent Control),即多版本并发控制协议,广泛使用于数据库系统.本文将介绍HBase中对于MVCC的实现及应用情况. MVCC基本原理 在介绍 ...
- ComponentOne Xuni助力Xamarin开发者突破百万,快速开发Android、IOS Apps
在微软Build 2015上,随着VS 2015的预览版发布,Xamrine免费版已经作为VS 2015跨平台移动解决方案的核心.与此同时,Xamarin官方也宣布其用户量达到百万之多.2011年7月 ...
- jQuery演示10种不同的切换图片列表动画效果以及tab动画演示 2
很常用的一款特效纯CSS完成tab实现5种不同切换对应内容效果 实例预览 下载地址 实例代码 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 ...
- Lucene
Lucene 是apache软件基金会一个开放源代码的全文检索引擎工具包,是一个全文检索引擎的架构,提供了完整的查询引擎和索引引擎,部分文本分析引擎. Lucene的目的是为软件开发人员提供一个简单易 ...
- 利用jsoup爬虫工具,爬取数据,并利用excel导出
import java.io.BufferedInputStream; import java.io.BufferedReader; import java.io.FileInputStream; i ...
- Leetcode 160 Intersection of Two Linked Lists 单向链表
找出链表的交点, 如图所示的c1, 如果没有相交返回null. A: a1 → a2 ↘ ...
- shell切割日志脚本
#!/bin/bash set -e source /etc/bashrc cd `dirname $` linenum=`wc -l userinfolist.txt | awk '{print $ ...
- iOS开发网络篇—发送GET和POST请求(使用NSURLSession)
iOS开发网络篇—发送GET和POST请求(使用NSURLSession) 说明: 1)该文主要介绍如何使用NSURLSession来发送GET请求和POST请求 2)本文将不再讲解NSURLConn ...
- 转:Directshow开发的一些例子
DirectShow Filter 开发典型例子分析 --字幕叠加 (FilterTitleOverlay)1 本文分析一下<DirectShow开发指南>中的一个典型的Transform ...
- html页面禁止自动填充浏览器记住的密码
现在的浏览器功能越来越强大,比如Chrome浏览器,在一个系统login的时候我们一般会记住密码,那么在整个系统中,浏览器一旦遇到 type="password"的控件,就会把密码 ...