Click here to Skip to main content
15,867,939 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have checkbox inside grid, I want to check that atlest one checkbox must be selected on click of button event. I want to do this with using javascript or jquery. I am using razor view engine. I am assignig id of check box like

@Html.CheckBoxFor(modelItem => item.CheckBox, new { id = "assignChkBx" + @item.ReportID})

I don't know hoe to deal with it.

Thanks in advance.
Posted

http://www.codeproject.com/Articles/23124/Client-Side-Validation-for-the-CheckBoxes-Inside-a

i think it will help you.....:)
 
Share this answer
 
v2
Comments
Sandeep Mewara 2-Jul-12 12:41pm    
No this will not help.
1. It's not MVC based article
2. It's not a check-all question.
you have write like checkbox.checked==true inside button click event
 
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