CSS
-Tricks
treehouse :
what would you like to learn today?
Web Design
Web Development
iOS Development
Show search box
Search
Search in:
All
Articles
Forums
Snippets
Videos
✕
Home
Forums
Snippets
Gallery
Videos
Almanac
Demos
Lodge
Navigation 'n' Search
Forums
Illustration by Nick Sirotich
Forums
»
JavaScript Jungle
[Solved] Tables
Ben_Derby
Permalink to comment
#
January 2012
Hey,
I have created a table with multi check box's.
Is there anyway once 3 or more box's have been ticked I can show a message?
Thanks
Ben
vindicateme
Permalink to comment
#
January 2012
with jQuery, you can use the :checked selector and .length to determine how many checkboxes have been checked.
example here:
http://jsfiddle.net/yg4Ae/
that should pretty much work; obviously you can replace the alert with whatever you want.
Ben_Derby
Permalink to comment
#
January 2012
Thanks very much. :D
Add a Comment
I have created a table with multi check box's.
Is there anyway once 3 or more box's have been ticked I can show a message?
Thanks
Ben
example here:
http://jsfiddle.net/yg4Ae/
that should pretty much work; obviously you can replace the alert with whatever you want.