Created
May 4, 2016 12:37
-
-
Save sb4m/a449189841558eda91909a512b8f812b to your computer and use it in GitHub Desktop.
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
alert($('#thirdLevelContent table table input:checked').length + ' Zone checked'); | |
var match = prompt("Please enter a match query to check", "zone 1"); | |
if (match != null) { | |
// match = (match + '').replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&"); | |
$('#thirdLevelContent table table').each(function() { | |
if ($(this).find('a').text().match(new RegExp(match))) { | |
if ($(this).find('input').length == 1) { | |
$(this).find('input').attr("checked", "checked"); | |
} | |
} | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To add a bookmarklet : http://mrcoles.com/bookmarklet/