LoginSignup
0
0

More than 5 years have passed since last update.

select option

Last updated at Posted at 2013-08-20

Just easy memos for coding simple html

Automatic Submit as Choosing item in pulldown menu

<form action="/hoge/fuga" method="get">
  <select name="search" onChange="this.form.submit()">
    <option value="title" selected disabled>Choose item you like</option>
    [% FOREACH key IN hoge%]
      <option value="[% key.id %]">[% key.id %] : [% key.name %]</option>
  </select>
</form>

cf )normal one

<form action="hoge/fuga" method="get">
  <input type="hidden" name="hoge" value="[% hoge %]">
    <select name="id">
      <option value="title" selected disabled>Choose item you like</option>
      <option value="0" name="title0">fuga0</option>
      <option value="1" name="title1">fuga1</option>
    </select>
    <input type="submit" value="view">
</form>

Changing img file with mouseover and mouseout

<img alt="myLoveImgs" height="80px" width="240px" src="baseImageUrl" onmouseover="this.src='mouseonverImgUrl'" onmouseout="this.src='mouseoutImgUrl'" />
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0