Click here to Skip to main content
14,879,563 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends how to validate an DropDownList in a GridView using javascript?

Thanks in Advance

Regards
Sushil Dharmar
Posted

1 solution

hi,
first what do mean by validation here? if you just want to get its value then use jquery syntax like

C#
$(document).ready(function() {
    $("YourDroDownListID").change(function () {
             alert($("YourDroDownListID option:selected").text());
             //do more logic here
        });
});


and now you can make your required logic here.
good luck.
   

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