Skip to content

Instantly share code, notes, and snippets.

@sstarr
Created October 8, 2014 22:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sstarr/3bea130e5a0e25c13a1d to your computer and use it in GitHub Desktop.
Save sstarr/3bea130e5a0e25c13a1d to your computer and use it in GitHub Desktop.
<p>
<span class="add-multi-asset">Add Another File</span>
(<span class="types">Images</span>)
</p>
// Using jQuery 1.7.2 because Reasons
$(".add-multi-asset").siblings('.types').text();
// Expected result: "Images"
// Actual result: [<span class="types">Images</span>]
@jordelver
Copy link

Works as far as I can tell: http://codepen.io/jordelver/pen/fKtAp

What's the context?

@sstarr
Copy link
Author

sstarr commented Oct 9, 2014

RAU asset browser in a component modal. It makes no sense at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment