i’ve google map api on website a added a choose to map web page and add filter on foundation on onchange occasion

selectedMarker = perform (val) {
     var worth = $(this).discover(":chosen").val();
    for (i = 0; i < map.markers.size; i++) {
        marker = map.markers[i];
        
        if (marker.identify == worth || identify === 0 ) {
            marker.setVisible(true);
            
            } 
        else {
        marker.setVisible(false);
            }
        
    }  
   
}

and on html I’ve

<choose id="selectschool" class="kind" onchange="selectedMarker(this.worth);" >
                <choice worth="">Search by Faculty</choice>
                <choice worth="0">All</choice>
<choice worth="1">1</choice>
<choice worth="2"2</choice>
<choice worth="3">3</choice>
  
                    
                        </choose>

3