Skip to content

Instantly share code, notes, and snippets.

@orangkucing
Created June 17, 2012 18:36
Show Gist options
  • Save orangkucing/2945369 to your computer and use it in GitHub Desktop.
Save orangkucing/2945369 to your computer and use it in GitHub Desktop.
<form>
<select onchange="action6181(this.value);">
<option value="#">言語を選んでください</option>
<option value="ja">日本語</option>
<option value="es">スペイン語</option>
</select>
</form>
<span></span><script type="text/javascript">//<![CDATA[
span6181 = document.getElementsByTagName('script');
span6181 = span6181[span6181.length - 1].previousSibling;
function action6181(lang) {
span6181.innerHTML = lang;
}
//]]></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment