There is a select list
<select name="area"> <option value="rect1">Квадрат1</option> <option value="rect2">Квадрат2</option> <option value="rect3">Квадрат3</option> </select>
When changing the value in <select> to the SVG element <rect> with id rect1,2,3 , the highlight class must be added accordingly, and the element to which it was added has to be deleted.