Issue 1241

Improves Pull Request #1302 because $.attr('checked') does not work for reading checked state of a checkbox.
I think this feature is necessary because for large models (de)selecting all fields needs lots of clicks, even when using the existing feature (clicking on the model/relation name).