Last active
October 8, 2020 07:56
-
-
Save varunsridharan/9db693b2fbb1eb2c330c3a5fd282d471 to your computer and use it in GitHub Desktop.
domQ Gist
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
/** | |
* Copy A Attr Value From 1 To Another | |
*/ | |
domQ( "p" ).copyAttr( "data-existingName", "data-newName"); |
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
domQ( "p" ).hasAttr( "myattr" ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment