[FLOW3-general] need help with f:form.select

Bastian Waidelich bastian at typo3.org
Thu May 3 19:55:20 CEST 2012


Wasko Jugovic wrote:

Hi Wasko

> By the way:  f:form:select supports the onclick event. What about onchange?
> I want to show a book's details without pressing the submit button

Two solutions:

1) all tag based view helpers have the "additionalAttributes" argument 
and you can use it like this:
<f:form.select additionalAttributes="{onchange: 'alert(this.value)'}" />

2) register the event handler via JavaScript (see [1]):


[1] http://en.wikipedia.org/wiki/Unobtrusive_JavaScript


-- 
Bastian Waidelich
TYPO3 Core Team Member

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the FLOW3-general mailing list