Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

$('#Tbl_Selection').find('tr').each(function(){
                $(this).find('select').change(function(){
                    $('#ctl00_cphPage_btnExpExcel').prop('disabled', true);
                });
                $(this).find('input').change(function(){
                     $('#ctl00_cphPage_btnExpExcel').prop('disabled', true);
                });
            });
 
Share this answer
 
Comments
sunil gutta 9-May-14 8:07am    
awesome bro .! worked like a charm for me
can you try disabled = true or false that may work for you........
 
Share this answer
 
Comments
dhage.prashant01 10-Jul-13 7:02am    
even if i put alert('hi');
it is not geting displayed.
function is not getting bind to each fropdown in the table.

any idea

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900