Skip to content

Instantly share code, notes, and snippets.

@ceaksan
Created February 13, 2018 07:40
Show Gist options
  • Save ceaksan/b9e63fff4ac8acc362a0fe0437bd5a39 to your computer and use it in GitHub Desktop.
Save ceaksan/b9e63fff4ac8acc362a0fe0437bd5a39 to your computer and use it in GitHub Desktop.
$( '.className' ).map(function() {
return $( this ).text();
}).get().join( ',' );
@ceaksan
Copy link
Author

ceaksan commented Aug 3, 2018

var selectedVal = jQuery.map(jQuery("#search_brand option"), function(a){
return a.text;
}).join(',');
console.log(selected_val);

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