Hi,

In the demo form all elements are wrapped inside a fieldset.
Let's say I don't want to wrap all elements in a fieldset, can this still work?
I mean, what to put in

'path'    => ahah_helper_path(array('billing_info')),

if there is no fieldset... just separate elements.

Thanks!

Joost

Comments

liquidcms’s picture

i have it working on a Submit button with no fieldset wrapper:

this is my entire form as far as form elements.

  $form['signup-button']['signup'] = array(
    '#type' => 'submit',
    '#value' => $value,
    '#name' => 'signup',
    '#ahah' => array(
      'event' => 'click',
      'path'    => ahah_helper_path(array('signup-button')), 
      'wrapper' => 'submit-button-' . $nid,
      'method' => 'replace',
      'effect' => 'fade',
     ),
    '#prefix' => '<div id="submit-button-' . $nid . '">',
    '#suffix' => '</div>',
    '#tree' => true,
  );