Comma separated list in jQuery

前端 未结 4 1345
后悔当初
后悔当初 2021-02-05 08:01

I\'m trying to create a comma separated list from what is checked on the form.

var $StateIDs = $(\':checked\');
var StateIDs = \'\';
for (i=0, j = $StateIDs.leng         


        
4条回答
  •  梦毁少年i
    2021-02-05 08:27

    Check the second answer here. It gives you nicely simplified code for exactly what you're doing.

提交回复
热议问题