diff --git a/website/o3dv/js/exportdialog.js b/website/o3dv/js/exportdialog.js
index 90e73ca..c6e3883 100644
--- a/website/o3dv/js/exportdialog.js
+++ b/website/o3dv/js/exportdialog.js
@@ -136,8 +136,9 @@ OV.ExportDialog = class
for (let i = 0; i < exportFormat.formats.length; i++) {
let format = exportFormat.formats[i];
let formatDiv = $('
').addClass ('ov_dialog_row').appendTo (this.formatParameters.formatSettingsDiv);
- let formatInput = $('
').addClass ('ov_radio_button').attr ('type', 'radio').attr ('id', format.name).attr ('name', 'format').appendTo (formatDiv);
- $('
').attr ('for', format.name).html (format.name).appendTo (formatDiv);
+ let formatLabel = $('').attr ('for', format.name).appendTo (formatDiv);
+ let formatInput = $(' ').addClass ('ov_radio_button').attr ('type', 'radio').attr ('id', format.name).attr ('name', 'format').appendTo (formatLabel);
+ $('').html (format.name).appendTo (formatLabel);
if (i === 0) {
formatInput.prop ('checked', true);
this.formatParameters.selectedFormat = format;
diff --git a/website/o3dv/js/settingssidebarpanel.js b/website/o3dv/js/settingssidebarpanel.js
index 562480c..9a4a2d2 100644
--- a/website/o3dv/js/settingssidebarpanel.js
+++ b/website/o3dv/js/settingssidebarpanel.js
@@ -117,8 +117,9 @@ OV.SettingsSidebarPanel = class extends OV.SidebarPanel
function AddRadioButton (contentDiv, themeId, themeName, onChange)
{
let row = $('').addClass ('ov_sidebar_settings_row').appendTo (contentDiv);
- let radio = $(' ').addClass ('ov_radio_button').attr ('type', 'radio').attr ('id', themeId.toString ()).attr ('name', 'theme').appendTo (row);
- $('').attr ('for', themeId.toString ()).html (themeName).appendTo (row);
+ let label = $('').attr ('for', themeId.toString ()).appendTo (row);
+ let radio = $(' ').addClass ('ov_radio_button').attr ('type', 'radio').attr ('id', themeId.toString ()).attr ('name', 'theme').appendTo (label);
+ $('').html (themeName).appendTo (label);
radio.change (() => {
onChange (themeId);
});