From 4c4a3d492843699b58554f4caa21904eeea3f8b2 Mon Sep 17 00:00:00 2001 From: MikeyC Date: Thu, 5 Oct 2017 11:12:12 +1100 Subject: [PATCH] fix for broken validation on optionsets --- javascript/UserForm.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/javascript/UserForm.js b/javascript/UserForm.js index 2ce0b1a..aa0c3b8 100644 --- a/javascript/UserForm.js +++ b/javascript/UserForm.js @@ -84,9 +84,9 @@ jQuery(function ($) { error.addClass('message'); if (element.is(':radio') || element.parents('.checkboxset').length > 0) { - error.insertAfter(element.closest('ul')); + error.appendTo(element.closest('.middleColumn')); } else if (element.parents('.checkbox').length > 0) { - error.insertAfter(element.next('label')); + error.appendTo(element.closest('.field')); } else { error.insertAfter(element); }