whats wrong in this query
Question
i have google map api on site a added a select to map page and add filter on basis on onchange event
selectedMarker = function (val) {
var value = $(this).find(":selected").val();
for (i = 0; i < map.markers.length; i++) {
marker = map.markers[i];
if (marker.name == value || name === 0 ) {
marker.setVisible(true);
}
else {
marker.setVisible(false);
}
}
}
and on html i have
<select id="selectschool" class="sort" onchange="selectedMarker(this.value);" >
<option value="">Search by School</option>
<option value="0">All</option>
1
3
0
3 weeks
2022-07-25T10:07:50-05:00
2022-07-25T10:07:50-05:00 0 Answers
0 views
0
Leave an answer