back

by sergiotapia·13y ago·view on hn ↗
It seems a simple script to tally all `:checked` elements using jQuery is too much for this blog to handle.
1 comments
The javascript involved does seem overly complicated for such a simple task. Maybe it was originally intended for something else and somehow found its way onto this page?
Can't seem to edit my comment. Anyone know why?

Anyway somebody asked me how to do it, but delete their comment. Paste this into your console, they already have jQuery loaded.

jQuery('.blog-post input').change(function() { console.log("Score: " + jQuery('.blog-post input:checked').length + "/50"); });