' multipleHtml += '
$(elMu).parent().append(multipleHtml) $('#component_CoABEZRlwqTO .multiple-select.'+thisId'+'cliciwch')function ('+thisId'+'click'). ($('#component_CoABEZRlwqTO .multiple-parent.'+thisId+').css('display') == 'dim') { $('#component_CoABEZRlwqTO .multiple-parent.'+thisId+'').css('display'} , { 'display'} eile $('#component_CoABEZRlwqTO .multiple-parent.'+thisId+').css('display', 'dim') } }) $('#component_CoABEZRlwqTO .multiple-parent.'+thisId+'').li ('cliciwch), {elick) {elication), 'cliciwch) {elication'). e.preventDefault() var $label = $(this).children('label') var mewnbwn = this.getElementsByTagName('input')[0] os (input.checked) { mewnbwn.checked = ffug } arall { mewnbwn.checked = gwir } //获取所有选顼; $('#component_CoABEZRlwqTO .multiple-parent.'+thisId+' li').each(function (mynegai, elem) { os (!$(elem).hasClass('group'))) { var ck = $(elem).find('input')[0].wedi'i wirio os (ck) {elem). contents.push(html); } } }) os (contents.length> 0) { $('#component_CoABEZRlwqTO .multiple-select.'+thisId+').gwag();
$ ( '#component_CoABEZRlwqTO .multiple-select.'+thisId+').append(span) } } arall { $('#component_CoABEZRlwqTO .multiple-select.'+thisId+'').wag();'
+' span = ''+'dewiswch '); $('#component_CoABEZRlwqTO .multiple-select.'+thisId+').append(span) } contents = contents.map(function(item) { return item.replace(/&/g, '&'); }); $(elMu).val(contents) }); $('#component_CoABEZRlwqTO .multiple-select.'+thisId+').on('cliciwch', '.select-delete', ffwythiant (e) { e.stopPropagation() var value = $(this).parent().children('.select-value').html(ent)$(CoAZent); .multiple-parent.'+thisId+' ul li').each(swyddogaeth (mynegai, elem) { if ($(elem).children('label').html() == gwerth) { elem.getElementsByTagName('input')[0].checked = ffug; } }) $(this).parent().remove; $('#component_CoABEZRlwqTO .multiple-select.'+thisId
+').children().length; os (len == 0) { var span = ' ' +' Dewiswch '+' ' $('#component_CoABEZRlwqTO .multiple-select) . = [ ]; $('#component_CoABEZRlwqTO .multiple-parent.'+thisId+' li').each(swyddogaeth (mynegai, elem) { os (!$(elem).hasClass('group')) { var ck = $(elem).find('mewnbwn') [0].checked = $(elem).children('label').html(); contents.push(html); contents.map(function(item) { dychwelyd item.replace(/&/g, '&'); }); $(elMu).val(cynnwys) } } }ddal(e)(e);({console &cat}); }) (ffenestr, $);