[pmwiki-devel] customised input with $InputTags

Patrick R. Michaud pmichaud at pobox.com
Fri Dec 15 09:32:57 CST 2006


On Thu, Dec 14, 2006 at 10:52:22PM +0000, Hans wrote:
> $InputTags['text'][':html'] = "<input type='text' \$InputFormArgs  
>     onfocus=\"prevalue=this.value; this.value=''\" onblur=\"this.value=prevalue\" />";
> 
> Now if I put this into config.php it will apply to all textline input
> boxes. But I rather restrict it only to some and not to others.
> How can I do that? Create two types of input text forms?

Yes, since they are actually different.

> Another thing: looking through the new forms script, I could not find
> a class for the select box. Could that please be added as default:
> 
>   SDV($InputTags['select']['class'], 'inputbox');

Done for beta18.

Pm



More information about the pmwiki-devel mailing list