When working with 2 different select tags and rendering images based on the selection, I also want to display a price determined by the options chosen. For instance, selecting "Your Current Division" as Iron and "Your Desire League" as Bronze/Silver/Gold should trigger a price change. Currently, I am using hard-coded if statements to determine the selected options.
<div className="text-gray-500 mt-7">
<select name="divisions" onChange={slbz2} id="listt" className="bg-gray-200 pr-14 pl-2 py-2">
<option value="ironn">Iron</option>
<option value="bronze">Bronze</option>
<option value="silverr">Silver</option>
<option value="goldd">Gold</option>
<option value="platt">Platinum</option>
<option value="diaa">Diamond</option>
</select>
</div>
<div className="mt-5">
<select name="divisions" onChange={slbz2} id="tierr" className="bg-gray-200 pr-12 pl-2 py-2">
<option value="44">Division IV</option>
<option value="33">Division III</option>
<option value="22">Division II</option>
<option value="11">Division I</option>
</select>
</div>
For a demo, visit: