可能重复:
使用 jQuery 分隔文本字符串
我已经从所有.postTag
使用 jquery中创建了一个字符串
sample:
<span class='postTag'>Jquery</span>
<span class='postTag'>php</span>
<span class='postTag'>mysql</span>
输出 :
<input type='hidden' id='allInsertedTags' value='Jquery,php,mysql' />
谢谢你;D