亚洲国产成人私人影院tom,国产精品嫩草影院av蜜臀,久久久精品蜜桃http://www.aygfsteel.com/void241/category/49446.htmlzh-cnSun, 28 Jul 2013 05:23:06 GMTSun, 28 Jul 2013 05:23:06 GMT60GMT:JS整理http://www.aygfsteel.com/void241/archive/2013/07/27/402043.htmlvoidvoidSat, 27 Jul 2013 11:02:00 GMThttp://www.aygfsteel.com/void241/archive/2013/07/27/402043.htmlhttp://www.aygfsteel.com/void241/comments/402043.htmlhttp://www.aygfsteel.com/void241/archive/2013/07/27/402043.html#Feedback0http://www.aygfsteel.com/void241/comments/commentRss/402043.htmlhttp://www.aygfsteel.com/void241/services/trackbacks/402043.html$.fn.extend({
        mourseEvent:function(){
            $(this).bind({
                mouseover:function(){$(this).css('background-color','#FFA500');},
                mouseout:function(){$(this).css('background-color','');}
            });
        },
});
$('#add').mourseEvent();



jQuery.ajax({$.ajax({
                cache: true,
                type: "POST",
                url:ajaxCallUrl,
                data:$('#yourformid').serialize(),// 你的formid
                async: false,
                error: function(request) {
                    alert("Connection error");
                },
                success: function(data) {
                    $("#commonLayout_appcreshi").parent().html(data);
                }
            });



]]>
html select 不可選 jqueryhttp://www.aygfsteel.com/void241/archive/2011/08/23/357143.htmlvoidvoidTue, 23 Aug 2011 13:24:00 GMThttp://www.aygfsteel.com/void241/archive/2011/08/23/357143.htmlhttp://www.aygfsteel.com/void241/comments/357143.htmlhttp://www.aygfsteel.com/void241/archive/2011/08/23/357143.html#Feedback0http://www.aygfsteel.com/void241/comments/commentRss/357143.htmlhttp://www.aygfsteel.com/void241/services/trackbacks/357143.html$.fn.selectReadOnly=function(){
        var tem=$(this).children('option').index($("option:selected"));
        $(this).change(function(){
              $(this).children('option').eq(tem).attr("selected",true);
        });
    }
    $("select:[readonly='readonly']").selectReadOnly();


]]>
JQuery判斷radio是否選中,獲取選中值http://www.aygfsteel.com/void241/archive/2011/08/23/357133.htmlvoidvoidTue, 23 Aug 2011 09:36:00 GMThttp://www.aygfsteel.com/void241/archive/2011/08/23/357133.htmlhttp://www.aygfsteel.com/void241/comments/357133.htmlhttp://www.aygfsteel.com/void241/archive/2011/08/23/357133.html#Feedback0http://www.aygfsteel.com/void241/comments/commentRss/357133.htmlhttp://www.aygfsteel.com/void241/services/trackbacks/357133.html

/*---------------------------JQuery判斷radio是否選中,獲取選中值----------------------------------*/

其他對(duì)radio操作功能,以后在添加。直接上代碼,別忘記引用JQuery包


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>JQuery radio</title>
<script type="text/javascript" language="javascript" src="JavaScript/jquery-1.6.1.min.js" ></script>
<script type="text/javascript" language="javascript">
 
/*------判斷radio是否有選中,獲取選中的值--------*/
    $(
function(){
         $(
"#btnSubmit").click(function(){
            
var val=$('input:radio[name="sex"]:checked').val();
            
if(val==null){
                alert(
"什么也沒(méi)選中!");
                
return false;
            }
            
else{
                alert(val);
            }
            
var list= $('input:radio[name="list"]:checked').val();
            
if(list==null){
                alert(
"請(qǐng)選中一個(gè)!");
                
return false;
            }
            
else{
                alert(list);
            }          
         });
     });
</script>
</head>
 
<body>
<form id="form1" >
<input type="radio"  name="sex" value="男" />
<input type="radio" name="sex" value="女" />
<br />
<input type="radio"  name="list" value="十分滿(mǎn)意" />十分滿(mǎn)意
<input type="radio" name="list" value="滿(mǎn)意" />滿(mǎn)意
<input type="radio" name="list" value="不滿(mǎn)意" />不滿(mǎn)意
<input type="radio" name="list" value="非常差" />非常差
<br />
<input type="submit" value="submit"  id="btnSubmit" />
</form>
</body>
</html>


]]>
主站蜘蛛池模板: 清水河县| 云安县| 湖南省| 河北区| 诸城市| 延安市| 芜湖市| 大埔区| 鄂托克前旗| 阿拉善盟| 惠东县| 紫阳县| 珲春市| 嘉荫县| 隆昌县| 沧源| 永靖县| 黎平县| 剑阁县| 万州区| 监利县| 芮城县| 永顺县| 游戏| 壤塘县| 高密市| 河北区| 延寿县| 阿拉尔市| 长治市| 壶关县| 杭锦后旗| 安徽省| 津市市| 堆龙德庆县| 浦城县| 永新县| 清水县| 会泽县| 诸城市| 巴彦淖尔市|