In this fiddle click the blue buttons to select Agents and add them to the list.
I create legend elements to show the Agent's name to the right of the respective input's label. (I do this so that long names don't disturb my table layout. If there's a better way, I'm all ears!)
You can remove Agents from the list by right-clicking on the respective blue button.
In a list of three of more Agents the legends of the Agents moved up (after removing the first Agent), all go to the same place, instead of staying with their respective label elements.
The code responsible for this starts with: if (selectName != "undefined" && selectName) {
I've spent three days on this! Please help me understand what I'm doing wrong.
Also, how do I prevent the need for two clicks to do anything after using the right-click to remove an Agent?
Thank you
Chris