WordPress Improvement Stack Change is a query and reply website for WordPress builders and directors. It solely takes a minute to enroll.
Anyone can ask a query
Anyone can reply
The perfect solutions are voted up and rise to the highest
Requested
Considered
6 instances
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
default