Author Topic: Why button is disabled?  (Read 4193 times)

Offline raczkowski1

  • Newbie
  • *
  • Posts: 4
Why button is disabled?
« on: April 28, 2011, 08:11:57 AM »
Hi
A try create form, but submit button is disabled, why?
source code:
Code: [Select]
   $out = html::div(array('class' => 'settingsbox', 'style' => 'margin:0'),
      html::div(array('id' => 'prefs-title', 'class' => 'boxtitle'), $this->gettext('filter_add')) .
      html::div(array('class' => 'boxcontent'), $table->show() .
        html::p(null,
          $rcmail->output->button(array(
            'command' => 'plugin.filter_add',
            'type' => 'input',
            'label' => 'save',
        )))
      )
    );

    $rcmail->output->add_gui_object('filterform', 'filter_add-form');

    return $rcmail->output->form_tag(array(
      'id' => 'filter_add-form',
      'name' => 'filter_add-form',
      'method' => 'post',
      'action' => './?_task=settings&_action=plugin.filter_add',
      ), $out);

result code:
Code: [Select]




edit:
I found solution, I forgot add javaSript codeq:)
« Last Edit: April 29, 2011, 05:40:57 AM by raczkowski1 »