...have "id" parameter same as a "name" but I not set it! And if I'll have more than one similar form on page it will .... bad. Thats how I add elements to Form class:
$message = new TextArea('message', array(
'class' => 'textarea-field',
'placeholder' => $t->form->post->message->placeholder
));
$message->addValidator(
new PresenceOf(array(
'message' => $t->form->post->message->required
))
);
$this->add($message);
That's how I render it:
{{ form.render('message') }}
That's what I get:
<textarea class="textarea-field" placeholder="Express your thoughts here" name="message" id="message"></textarea>
How to trick?