I want to show my records multi selectable. Like this: https://i.stack.imgur.com/ZtqLF.png Then i will make buttons for "delete selected items", "edit selected items" e.t.c. So, how can ?
Asked
Active
Viewed 56 times
0
-
1Please try to be more elaborate. Add some of the details here. – sharvil111 Nov 17 '15 at 05:11
-
1Possible duplicate of [check uncheck All checkboxes with another single checkbox use jquery](http://stackoverflow.com/questions/15504643/check-uncheck-all-checkboxes-with-another-single-checkbox-use-jquery) – Sean Nov 17 '15 at 05:19
-
1Have a look at http://viralpatel.net/blogs/multiple-checkbox-select-deselect-jquery-tutorial-example/ – Zeus Nov 17 '15 at 05:20
-
1Check your solution here: http://stackoverflow.com/questions/3050558/create-table-with-php-and-populate-from-mysql – Waqas Shahid Nov 17 '15 at 05:22
-
I think I'm confused today. It was really very easy problem. Thanks for your replies guys. – eatik Nov 17 '15 at 05:49
1 Answers
1
Define your check box as array(name="check_list[]"
). So it will store multiple vales on it. Then use foreach
loop and do your needs
<input type="checkbox" name="check_list[]" value="PHP"><label>PHP</label><br/>
<input type="checkbox" name="check_list[]" value="CSS"><label>CSS</label><br/>
<input type="checkbox" name="check_list[]" value="HTML"><label>HTML</label><br/>
as well as check this example too

Abdulla Nilam
- 36,589
- 17
- 64
- 85