Blog Archive for March 12, 2011

Marker Management in Google Maps

March 12, 2011

Changing the icon when building a google map is easy -simply specify an icon in the marker.

This code populates the marker with a dynamic path - the JavaScript is in a Django template.

var lBand{{band.id}} = {
  section: '{{band.map_icon_name}}',
  region: '{{ …

jQuery Select Droplist by Value

March 12, 2011

Say we have a droplist (<select>) on a web page, and we want to use jQuery to select one of the items.

Given the following select:

<select id="mySelect">
  <option value="A">First</option>
  <option value="B">Second</option>
  <option value="C">Third</option>
  <option value= …