开发者

Make checkbox value append to textbox, separated by semicolon (copy e-mail addresses)

I'd like to have a list of checkboxes (e-mail addresses). When boxes are clicked, a textfield blanks and is replaced with values of all checked checkboxes, on开发者_如何学Goly separated by "; ".

http://jsfiddle.net/7b5fk/1/ is -almost- what I want, except I don't want the comma spacing. I've tried multiple approaches but still can't get rid of the comma.


Add .join(';') to this line:

('#video0_tags').val(allVals.join(';')).attr('rows',allVals.length);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜