MediaWiki:Common.js: Difference between revisions

mNo edit summary
mNo edit summary
Tag: Reverted
Line 6: Line 6:
     $(this).closest('.dismissible-notice').hide();
     $(this).closest('.dismissible-notice').hide();
   });
   });
});
$(document).ready(function() {
    $('#ooui-php-1').on('change', function() { // Replace 'ooui-php-1' with the actual ID of your dropdown
        var selectedDate = $(this).find('option:selected').data('date');
        if (selectedDate) {
            $('#ooui-php-2').val(selectedDate); // Replace 'ooui-php-2' with the actual ID of your date field
        }
    });
});
});