diff --git a/app/Views/customer_group_form.php b/app/Views/customer_group_form.php index 2ceec09f..8aaccddc 100644 --- a/app/Views/customer_group_form.php +++ b/app/Views/customer_group_form.php @@ -480,21 +480,22 @@ function FieldChange(selectElement, rowCounter) { var inputId = 'values' + rowCounter; var column = $("#column"+rowCounter).find(':selected').attr('fieldflag'); if (column == 2 && (selectedOperator == 'greater than' || selectedOperator == 'greater than or equal to' || selectedOperator == 'less than' || selectedOperator == 'less than or equal to')) { - $('#' + inputId).replaceWith(''); - }else if(column == 2 && selectedOperator === 'between') { - var inputHtml = '
' + - '
'+ - ''; - $('#' + inputId).replaceWith(inputHtml); + $('#' + inputId).parent().html(''); + }else if (column == 2 && selectedOperator === 'between') { + var newInput = '
' + + '
' + + ''; + $('#' + inputId).parent().html(newInput); } else if(column == 1 && (selectedOperator === 'contain' || selectedOperator == 'not contain')) { - $('#' + inputId).replaceWith(''); + // $('#' + inputId).replaceWith(''); + $('#' + inputId).parent().html(''); }else if(selectedOperator === 'is null' || selectedOperator == 'is not null') { - $('#' + inputId).replaceWith(''); + $('#' + inputId).parent().html(''); }else if(column == 3 && (selectedOperator === 'equal' || selectedOperator == 'not equal' || selectedOperator == 'like' )){ - $('#' + inputId).replaceWith(''); + $('#' + inputId).parent().html(''); }else{ - $('#' + inputId).replaceWith(''); + $('#' + inputId).parent().html(''); } }