<form>
<button onClick="form.action='search/';return true">SEARCH</button>
<button onClick="form.action='csv/';return true">CSV</button>
</form>
各ボタンがクリックされた時にフォームのactionを指定のものに変えるような処理。
More than 5 years have passed since last update.
<form>
<button onClick="form.action='search/';return true">SEARCH</button>
<button onClick="form.action='csv/';return true">CSV</button>
</form>
各ボタンがクリックされた時にフォームのactionを指定のものに変えるような処理。
Register as a new user and use Qiita more conveniently