add separator before the optional inputs dropdown

This commit is contained in:
Jakob Ketterl
2021-02-23 19:23:54 +01:00
parent 4e32d724c4
commit f9772faa6f
3 changed files with 6 additions and 1 deletions

View File

@ -7,7 +7,7 @@ $.fn.optionalSection = function(){
var field = $select.val();
var group = $optionalInputs.find(".form-group[data-field='" + field + "']");
group.find('input, select').prop('disabled', false);
$select.parents('.form-group').before(group);
$section.find('hr').before(group);
$select.find('option[value=\'' + field + '\']').remove();
return false;