Created
November 27, 2018 17:06
-
-
Save adamculpepper/b4d63a8f11daa4abd909fb30e927e992 to your computer and use it in GitHub Desktop.
jQuery: Updating pseudo element content
This file contains 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
<style> | |
body:after {content:attr(data-content); | |
</style> | |
$('body').attr('data-content': 'changed body:after content') | |
<body data-content="body:after content"> | |
...content... | |
</body |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment