diff --git a/modules/hosting/site/hosting_site.form.js b/modules/hosting/site/hosting_site.form.js index f64303b..bb68385 100644 --- a/modules/hosting/site/hosting_site.form.js +++ b/modules/hosting/site/hosting_site.form.js @@ -92,8 +92,7 @@ Drupal.hosting.siteFormToggleOptions = function(settings) { $desc_id.show() .find('div.placeholder') .removeClass('error') - .contents() - .replaceWith($.trim($input_id.parent().text())); + .html($.trim($input_id.parent().text())); } } else { @@ -104,8 +103,7 @@ Drupal.hosting.siteFormToggleOptions = function(settings) { $desc_id.show() .find('div.placeholder') .addClass('error') - .contents() - .replaceWith('No valid choices'); + .html('No valid choices'); } } else if ($id.hasClass('hosting-site-field-textfield') || $id.hasClass('hosting-site-field-textarea')) { @@ -118,8 +116,7 @@ Drupal.hosting.siteFormToggleOptions = function(settings) { if ($input_id.val().length) { $desc_id.show() .find('div.placeholder') - .contents(). - replaceWith($.trim($input_id.val())); + .html($.trim($input_id.val())); } } else if ((settings[key].toString().length || (settings[key] == true)) && (settings[key] != false)) {