Created
November 25, 2011 21:04
-
-
Save netProphET/1394405 to your computer and use it in GitHub Desktop.
select element of resources, will take user to resource selected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<option value="[[~[[+id]]]]">[[+pagetitle]]</option> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment