2009-02-10から1日間の記事一覧
<button type="button" value="今日" onClick="setValue('today')">今日</button> <script type="text/javascript"> <!-- function setValue(type){ if (type == "today"){ document.getElementsByName("day")[0].value = "[% today %]"; } } --> </script> ほぼ初めてのjs。hello worldみたいなのでも動いたときはガッツポーズするくらい嬉しかったなあ。