<span class="b-filter-level-first__name b-filter-level-first__name--second open">Kategorie</span>
<li class="b-filter-level-first__item dropdown-submenu js-no-close"><span class="b-filter-level-first__name b-filter-level-first__name--second open">Kategorie</span>
<ul class="dropdown-menu b-dropdown__menu--second-menu js-no-close" style="display: block;">
<li>
<div class="b-checkbox">
<input type="checkbox" name="model-name" id="model-name1">
<label for="model-name1" class="b-checkbox__name b-checkbox__name--filter">Ringe</label>
</div>
</li>
<li>
<div class="b-checkbox">
<input type="checkbox" name="model-name" id="model-name2">
<label for="model-name2" class="b-checkbox__name b-checkbox__name--filter">Ohrringe</label>
</div>
</li>
<li>
<div class="b-checkbox">
<input type="checkbox" name="model-name" id="model-name3">
<label for="model-name3" class="b-checkbox__name b-checkbox__name--filter">Anhänger</label>
</div>
</li>
<li>
<div class="b-checkbox">
<input type="checkbox" name="model-name" id="model-name4">
<label for="model-name4" class="b-checkbox__name b-checkbox__name--filter">Ketten</label>
</div>
</li>
</ul>
</li>
var tags = [
"Value 0",
"Value 1",
"Value 2",
"Value 3",
]
,selected = []
,$in = $('#workDesignTags')
;
render();
$("#workDesignLabels input").on("change", clickHandle);
function render() {
var i, v, items=[];
for(i=0;i<tags.length; i++) {
v = tags[i];
items.push( $('<label>').append( $('<input>', {
type:"checkbox",
name:"design",
value: i,
})).append( v)
);
};
$('#workDesignLabels').append(items);
}
function clickHandle() {
var i, k = $(this).val(), result = [];
if( !!~(i = selected.indexOf(k))) {
selected.splice( i, 1);
} else {
selected.push(k);
}
for(i=0;i<selected.length;i++) result.push( tags[ selected[i]]);
$in.val( result.join(', '));
};
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="formRow labelBox col3 dropDownMobile" id="workDesign">
<input type="text" name="tags" id="workDesignTags">
<div id="workDesignLabels"></div>
</div>