Created
October 8, 2014 22:40
-
-
Save sstarr/3bea130e5a0e25c13a1d 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
<p> | |
<span class="add-multi-asset">Add Another File</span> | |
(<span class="types">Images</span>) | |
</p> |
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
// Using jQuery 1.7.2 because Reasons | |
$(".add-multi-asset").siblings('.types').text(); | |
// Expected result: "Images" | |
// Actual result: [<span class="types">Images</span>] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Works as far as I can tell: http://codepen.io/jordelver/pen/fKtAp
What's the context?