5
Jquery 1.3.2 kullanıyorum
ama son sürümüne güncelledik:
jquery son sürümü ile çalışmıyor aşağıdaki - burada neyin yanlış gidiyor?
var input = $(this);
// get the associated label using the input's id
var label = $('label[for=' + input.attr('id') + ']');
//get type, for classname suffix
var inputType = (input.is('[type=checkbox]')) ? 'checkbox' : 'radio';
// wrap the input + label in a div
$('<div class="custom-' + inputType + '"></div>').insertBefore(input).append(input, label);
// find all inputs in this set using the shared name attribute
var allInputs = $('input[name=' + input.attr('name') + ']');
sayesinde o :) – user1177860
Mark cevabını çalıştı sonra kabul :) –
Thanx olarak! Beni biraz zaman kurtardın. 1.8.0 sürümünden çift tırnak gerekli hale geldi ... – nightcoder