Click here to Skip to main content
15,885,141 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have some jqgrid table it contains check box column also.But if once i can selected the checkbox from any row that row can be displayed from top row.For this i can write selected event for checkbox.can any one help me for how to write checkboxselected event in mvc3 with jquery.
Posted

1 solution

Here is jquery function which will help you-


C#
$(":checkbox").click(function () {
                var value = $("input:checked").val();
                alert(value);

            });


Here var "value" gives me the value of checkbox which is asign like-

<input type="checkbox" class="checkbox" id="row4" value="row4"/>
 
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