Click here to Skip to main content
15,921,905 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

Sushil Dharmar

1 solution

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

$(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.
Share this answer

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