Simple syntax for select.value = ...

manakai-core / Whatpm / manakai-charlib / CharClass / WebHACC / Harusame / regexp

Simple syntax for select.value = ... - TODO

<select name=hoge>
  <option pl:value=HOGE1 pl:selected="($rs->hoge == HOGE1) || undef">Hoge 1
  <option pl:value=HOGE2 pl:selected="($rs->hoge == HOGE2) || undef">Hoge 2
  <option pl:value=HOGE3 pl:selected="($rs->hoge == HOGE3) || undef">Hoge 3
</select>

... is ugly. There should be a simplified syntax, e.g.:

<select name=hoge XXX:selectedoption="$rs->hoge">
  <option pl:value=HOGE1>Hoge 1
  <option pl:value=HOGE2>Hoge 2
  <option pl:value=HOGE3>Hoge 3
</select>
[Good Job!]