Skip to content

Instantly share code, notes, and snippets.

@netProphET
Created November 25, 2011 21:04
Show Gist options
  • Save netProphET/1394405 to your computer and use it in GitHub Desktop.
Save netProphET/1394405 to your computer and use it in GitHub Desktop.
select element of resources, will take user to resource selected
<select name="mySelect" id="mySelectId" onchange="el=document.getElementById('mySelectId');u=el.options[el.selectedIndex].value;if(u!=''){window.location.href=u;}">
[[getResources? &parents=`0` &tpl=`selectOption.tpl`]]
</select>
<option value="[[~[[+id]]]]">[[+pagetitle]]</option>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment