jquery select. disabled

jquery select. disabled,第1张

$("select")change(function(){

    var me = $(this);

    if(!medata("ind"))

        medata("ind", mefind("option:selected")prop("selectedIndex"));

});

$("button")click(function(){

    var ind = $("select")data("ind");

    $("select")find("option:eq("+ind+")")prop("selected",true);

});

$(":checkbox:disabled")

$(":checkbox:enabled")

$(":checkbox")prop("disabled")

$(":checkbox")prop("enabled")

$(":checkbox")attr("disabled")

$(":checkbox")attr("enabled")

<script language="javascript">

<!--

$(function(){

var input = $("#appDIV")find("input[type='radio']");

inputattr("disabled","disabled");

//inputeq(1)attr("checked",true);

inputeach(function(){

if($(this)val()==2){

$(this)attr("checked",true);

}

});

});

//-->

</script>

用div将三个radio套着!

<div id="appDIV" style="width:500px; margin:0 auto;">

<input type="radio" value="1"/>

<input type="radio" value="2"/>

<input type="radio" value="3"/>

</div>

$('tr')click(function(){

$(this)find('input')each(function(){

alert($(this)val());

});

});

以上就是关于jquery select. disabled全部的内容,包括:jquery select. disabled、Jquery 如何判断复选框是否 disabled、jquery怎么让radio选中,然后disabled掉等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/9289342.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-04-26
下一篇2023-04-26

发表评论

登录后才能评论

评论列表(0条)

    保存