Ero sivun ”Widget:Form enabler XX” versioiden välillä
Järvi-meriwikistä
Rivi 53: | Rivi 53: | ||
//jQuery( document ).on( 'change', '.mw-widgets-datetime-dateTimeInputWidget-field', function() { console.log( 'change' ); } ); | //jQuery( document ).on( 'change', '.mw-widgets-datetime-dateTimeInputWidget-field', function() { console.log( 'change' ); } ); | ||
− | jQuery('.JwLocRadiobuttons').each(function() { | + | jQuery('label.JwLocRadiobuttons').each(function() { |
− | + | ||
− | + | var label = jQuery( this ); | |
+ | |||
var input = jQuery( this ).children( 'input' ).first(); | var input = jQuery( this ).children( 'input' ).first(); | ||
− | + | ||
var classes = jQuery( this ).attr('class').split(' '); | var classes = jQuery( this ).attr('class').split(' '); | ||
var val = input.val(); | var val = input.val(); | ||
− | + | ||
for (var i in classes) { | for (var i in classes) { | ||