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);
精彩评论