Currently, I am troubleshooting an issue with a dropdown menu that allows for invalid selections. Despite being labeled as "unavailable," users are still able to click on these options for the product.
<select readonly="" class="size-selector">
<option value="">Size</option>
<option value="XS">XS</option>
<option value="S">S - Unavailable</option>
<option value="M">M - Unavailable</option>
<option value="L">L</option>
<option value="XL">XL</option>
</select>
My goal is to restrict the selection to only valid options after the Size
label, excluding those tagged as "Unavailable".