Skip to content

Instantly share code, notes, and snippets.

@dyng
Created December 7, 2012 12:48
Show Gist options
  • Save dyng/4233046 to your computer and use it in GitHub Desktop.
Save dyng/4233046 to your computer and use it in GitHub Desktop.
把多个input框的内容拼接成一条字符串
var serial_code = $("#serial-code-input>input").map(function(){
return this.value;
}).get().join('');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment