It took me 3 hours of trying different scenarios to finally figure out what the problem was - a silly typo on my end (the bane of my existence!) had been causing inconsistent results :-(
But while doing that I realized that there was a problems with the part of my script which removes the value from the target (class="priorityIssue") if selections are removed and/or changed.
- if ((itemVal == 'Null') || (rank == 'Null')) { return; }
- $('select.priorityIssue option.' + itemId).remove();
This portion of the script is triggered correctly in every scenario except for one - if complaintRanking is unselected (it works when complaintRanking is changed and if complaintItem is unselected or changed). I tried creating a separate trigger event for complaintRanking, but that didn't help. Do you have any suggestions?