How can i selcet only Unique value from multiple dropdown in html? : Hi i need to selset only Uniqe value from multiple dropdown, dropwown box is not fix they are rendreing dyanmicly so then could be any number of  dropdown based on dropdown value is in dropdown box.

So i want if user selectsame value which is already selected in any other dropdown there should be genrate a  alert message there

    <select name="profile1" id="profile1" >
            <option value="1">Delhi</option>
            <option value="2">Mumbai</option>
            <option value="3">Kanpur</option>
               
        </select>
    
    <select name="profile1" id="profile2" >
            <option value="1">Delhi</option>
            <option value="2">Mumbai</option>
            <option value="3">Kanpur</option>
               
        </select>
    
    <select name="profile1" id="profile3" >
            <option value="1">Delhi</option>
            <option value="2">Mumbai</option>
            <option value="3">Kanpur</option>
               
        </select>

How can i achieve this.

Thanks