在任何下拉列表更改事件上禁用按钮 [英] disable button on any dropdown change event

查看:73
本文介绍了在任何下拉列表更改事件上禁用按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,

i有桌子作为过滤器控件。



i想要在更改任何下拉列表时禁用导出按钮< br $>


i试图跟随

< script> 
$(document).ready(function(){
$('#Tbl_Selection> tbody> tr')。each(function(){
$(this).find( 'select')。each(function(){
$(this).change(function(){
$('#ctl00 $ cphPage $ btnExpExcel')。attr(disabled,disabled );
);
});
});
});
< / script>





不工作



我可以知道我哪里出错



提前感谢

解决方案

(文件)。 ready(function(){


('#Tbl_Selection> tbody> tr')。each(function(){


(this) .find( '选择')。每个(函数(){

hi friends,
i have table which acts as filter controls.

i want to disable export button on change of any dropdown change

i tried following

<script>
        $(document).ready(function(){
            $('#Tbl_Selection > tbody > tr').each(function(){
            $(this).find('select').each(function(){
                $(this).change(function(){
                    $('#ctl00$cphPage$btnExpExcel').attr("disabled", "disabled");
                );
            });
        }); 
        });
    </script>



Its not working

May i know where i'm going wrong

thanks in advance

解决方案

(document).ready(function(){


('#Tbl_Selection > tbody > tr').each(function(){


(this).find('select').each(function(){


这篇关于在任何下拉列表更改事件上禁用按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆