I have 18 sliders generated by a PHP ‘for’ loop. Each one is identical but all names are made unique via iteration index i.e. slider0, slider1, slider2 etc. This is the same for the select fields that each slider is liked to. The Min, Max, and Step of each slider and the option values for each slider are also set within the PHP code. All javascript references for each slider are correctly indexed as per above to refer to correct IDs etc.
The issue I am experiencing is that 7 of the 18 selects linked to the sliders are displaying a blank value when corresponding linked slider is on its far left Min setting. The select only displays the 2nd step thru to max value when the slider is moved - as soon as the slider is returned to Min point, the select displays a blank value. I have examined the generated page code and there appears to be no glitches in any slider, select or other names / IDs.
I can get the selects to be ‘zeroed’ at page load by having document.getElementById(“selectID”).selectedIndex=0 run in each script block but as soon as the slider is clicked at Minimum position, the linked select ‘blanks’ then changes with the slider value, only to return to blank display when slider returned to Min position…
Before I put up any code is there any known issue that will cause a linked select field to display a null value even though all of its fields are populated correctly and exactly match the linked slider range and step?