This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ######################################################################## | |
| # OPTIMAL .htaccess FILE FOR SPEED AND SECURITY @Version 2019 | |
| # ---------------------------------------------------------------------- | |
| # @Author: Andreas Hecht | |
| # @Author URI: https://andreas-hecht.com | |
| # License: GNU General Public License v2 or later | |
| # License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
| ######################################################################## | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $("input:checkbox").on('click', function() { | |
| // in the handler, 'this' refers to the box clicked on | |
| var $box = $(this); | |
| if ($box.is(":checked")) { | |
| // the name of the box is retrieved using the .attr() method | |
| // as it is assumed and expected to be immutable | |
| var group = "input:checkbox[name='" + $box.attr("name") + "']"; | |
| // the checked state of the group/box on the other hand will change | |
| // and the current value is retrieved using .prop() method | |
| $(group).prop("checked", false); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| test |