Link to home
Start Free TrialLog in
Avatar of ayha1999
ayha1999

asked on

Keyup for dropdownlist

Hi,

I am trying the following script to disable a button when changing item in a dropdownist in an aspx page but not working. The script is working for text box.

    </script>
        <script type="text/javascript">
            $(document).ready(function () {
                $(".ddlDrop").keyup(function () {
                    $("#Button1").attr('disabled', 'disabled');
                });
            });

    </script>

 <asp:DropDownList ID="ddlMat" runat="server" CssClass="ddlDrop">

Please help.

Thanks

ayha
ASKER CERTIFIED SOLUTION
Avatar of Monica P
Monica P
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ayha1999
ayha1999

ASKER

still not working

    <script type="text/javascript">
        function Populatedetail() {
            var Button1 = document.getElementById('Button1 ');
            //Disable the Button
        }

    </script>