Merhaba, bir html append ediyorum.
append ettiğim veri şu olsun
<input type="checkbox">
script.js
$('input:checkbox, input:radio').checkbox();
Normalde htmlde direk yazdığımda stilli geliyor fakat append ettiğim için append edilen kısmı görmüyor.
Bunu nasıl yapabilirim?
Live selector
6
●607
- 20-11-2012, 16:17:35Stilli derken?
Şu an, tüm checkboxları ve radioları check ediyorsun sadece, ortada bir stil mevzu bahis bile değil ki. - 20-11-2012, 17:33:07Merhaba,
Stil plugins tarafından ekleniyor.technodahi adlı üyeden alıntı: mesajı görüntüle
ch.wrapper = $('<span class="' + settings.cls + ' ' + elClass + '"><span><span class="checkboxplaceholder"></span></span></span>'); ch.wrapperInner = ch.wrapper.children('span:eq(0)'); ch.wrapper.bind({ "click" : function(e) { $ch.trigger('click'); return false; }, "mouseover" : function(e) { ch.wrapperInner.addClass('hover'); }, "mouseout" : function(e) { ch.wrapperInner.removeClass('hover'); }, "mousedown" : function(e) { ch.wrapperInner.addClass('pressed'); }, "mouseup" : function(e) { ch.wrapperInner.removeClass('pressed'); } });Plugins checkbox fonksiyonunun içi
stillere tag üzerinden değil, tipinden (<input type="radio"> stil veriliyor.nekrofil adlı üyeden alıntı: mesajı görüntüle
ekstra olarak div vs ekleniyor o yüzdne çalışmıyor - 23-11-2012, 13:37:20Tamam o zaman append ettikten sonra stil pluginini tekrar execute etmen gerekiyor tek sıkıntı bu?