Created
February 12, 2013 14:45
-
-
Save luckyshot/4770325 to your computer and use it in GitHub Desktop.
Add 'first' CSS class to the first paragraph found that doesn't contain an image (jQuery)
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
// Add 'first' class to intro text in #post-content container | |
$('#post-content>p:not(:has(img))').eq(0).addClass('first'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment