Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Delimiting a text string with jQuery
- $('#element').find('p').text();
- var names = $('#element').find('p').map(function(){
- return $(this).text();
- }).get().join(',');
- console.log(names); //The Beatles,Radiohead,Britney Spears
Add Comment
Please, Sign In to add comment