Last active
October 27, 2022 21:53
-
-
Save tevashov/5172457 to your computer and use it in GitHub Desktop.
Log to console via jQuery #jQuery
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
| jQuery.fn.log = function (msg) { | |
| console.log("%s: %o", msg, this); | |
| return this; | |
| }; | |
| $('#some_div').find('li.source > input:checkbox').log("sources to uncheck").removeAttr("checked"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment