Trigger change on last select element to show Delete option
This commit is contained in:
@@ -69,7 +69,7 @@ jQuery(document).ready(function($){
|
|||||||
if($(this).val() == '') $(this).remove();
|
if($(this).val() == '') $(this).remove();
|
||||||
}).find('option:first').text($(this).attr('data-remove-text'));
|
}).find('option:first').text($(this).attr('data-remove-text'));
|
||||||
if($(this).val() != '') {
|
if($(this).val() != '') {
|
||||||
$(this).before($(this).clone().val($(this).val())).val('');
|
$(this).before($(this).clone().val($(this).val())).val('').change();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user