I have a subroutine that dynamically adds options to a select based on data entered into a number of text boxes. Everything works great except I need to change my sub to check the options that are in the select to see if it exists before adding the value. In other words, I don't want to duplicate the options in the select.
Can anyone provide sample code to loop through the options in a select and compare the values to the values in my text box?
Can anyone provide sample code to loop through the options in a select and compare the values to the values in my text box?