How to check all checkbox when click on main checkbox

By

Some time question asked to me how to check all checkbox when click on main checkbox .
First create a case for this . Simply in your project city list display with checkbox .There are a button select all it also a checkbox. Your supervisor ask you to when we click on all then all cities are select and vice versa. I simply Create a situation here .Please have a look.

Code Sample [All Html & Jquery]

OutPut
Select All Mumbai Noida Lucknow Kanpur Ludhiyana
read more..

0 comments:

Post a Comment