Jquery - Getting all values of a multi select list

I am trying to use JQuery to get all of the the values that are in a multiple select box. I currently have a picklist thing going on where users are selected in a select list box and then added to the PickList box. I am trying to use JQuery to get a somewhat formatted list (formatted with spaces) so I can parse that list later on. I am able to get a real weird string that is not formatted by doing this $.map($('#PickList'), function(e) { return $(e).text(); } ); but this is not formatted with a space " " after each value and the string looks like it has a ton of whitespace in the front of it or something. Anyone know a way to do this? Thanks

以上就是Jquery - Getting all values of a multi select list的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » jQuery 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏