[pmwiki-devel] Select & Option Dropdown-list Markup

Hans design5 at softflow.co.uk
Mon Dec 11 14:26:21 CST 2006

Monday, December 11, 2006, 8:20:56 PM, Patrick wrote:

> Actually, after thinking about it a bit further, it might be
> better to define

>   $InputTags['jumpform']['name'] = 'n';
>   $InputTags['jumpform'][':html'] =
>     "<form action='{$PageUrl}' method='get'>
>      <select \$InputFormArgs 
> onchange='window.location.href=this.options[this.selectedIndex].value'>
>      \$InputSelectOptions</select>
>      <input type='submit' value='$[Go to Page]' /></form>";

> In this case, the pagelist needed to generate a jumpform is just

>     [[#jumpform]]
>     (:input jumpform value="{=$PageUrl}" label="{=$Title}":)
>     [[#jumpformend]]

> and we don't have to worry about creating any form or submit elements
> because "(:input jumpform ...)" already takes care of that for us.


Please don't forget to put a css class hook on <select >
class='inputbox' may be sufficient.


More information about the pmwiki-devel mailing list