JSFiddle - React, Tailwind, and code Playground
by Vipin Patil
HTML
Interested Location
<select id="00N6F00000HgYNJ" name="00N6F00000HgYNJ" title="Center Name">
<option value="BLR 1MG Mall">1 MG Mall and Market City</option>
<option value="BLR Orion">Whitefield and Orion Mall</option>
<option value="BLR MCB">Malleshwaram </option>
</select>
<select id="00N6F00000FbWPi" name="00N6F00000FbWPi" title="Sales Team Assigned">
<option value="BLR 1MG Mall">BLR 1MG Mall</option>
<option value="BLR Orion Mall">BLR Orion Mall</option>
<option value="BLR MCB">BLR MCB</option>
</select>
JavaScript
jQuery(document).ready(function($) {
$("#00N6F00000HgYNJ").change(function() {
// I personally prefer using console.log(), but if you want you can still go with the alert().
// console.log($(this).children('option:selected').index());
$('#00N6F00000FbWPi option')[$("#00N6F00000HgYNJ")[0].selectedIndex].selected = true;
});
});