Created
April 30, 2020 06:36
-
-
Save BobbyRuby/afb1682d49ba709954fcb243c360046f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery(this).find('option:not(:selected)').each(function (i) { | |
| // Check for a number input with an id of this task type id | |
| let exists = jQuery('input[id="'+ jQuery(this).val() +'"]'); | |
| // Does exist | |
| if ( exists.length !== 0){ | |
| // Remove it | |
| jQuery(exists).parent().remove(); | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment