jquery - Toggle Checkbox if element has class -
i ahve list elements, class 'added' if clicked. element shall transferred form. therefore have made list of checkboxes, have same classes 'li' list. i wrote jquery script, shall check, if 'li' clicked (hasclass) , proper checkbox should have attribute 'checked'. not working properly. don't know have made wrong... html: <div class="container"> <div class="row row-centered konf-wrapper-1"> <div class="col-md-4 label-wrap"> <h1 class="header-label">konzeption</h1> <ul class="li-wrap"> <li class="added haken">kommunikationsstrategie</li> <li class="0 hide-me add-btn point">zielgruppendefinition</li> </ul> ...