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

Hans design5 at softflow.co.uk
Mon Dec 11 11:46:18 CST 2006

Monday, December 11, 2006, 5:36:48 PM, The wrote:

> Markup('select+', 'inline', '/\(:select\\+ (.*?):\\)/', '<select
> name=$1
> onChange="window.location=this.options[this.selectedIndex].value">');
> ie (:select+ FieldName:)

Ahh. I was not aware of this select+

> Markup('option', 'inline', '/\\(:option (.*?):\\)/e', "Keep('<option
> '.PQA(PSS('$1')).' />')");
> ie (:option value="MyValue":)Display Value

I was playing around with the PQA, but it needs value= in the markup.
I thought that was a bit much for typing  a list of options.
And I was not sure if <option ..../> is valid HTML, or does it need
<option ...> label </option>. Mostly I found the latter, but the first
may be valid XHMTL ??

Well if this thread helps to get a unified select markup then it is
worth it.


More information about the pmwiki-devel mailing list