When I create a form using the form API, the resulting html includes all sorts of unwanted divs. For example, if I use:
$form = array(
'myFieldset' => array(
'#type' => 'fieldset'
)
);
The resulting html looks like this:
<form action="/drupal-7.15/?q=chercheur" method="post" id="form-chercheur" accept-charset="UTF-8">
<div>
<fieldset class="form-wrapper" id="edit-myfieldset">
<div class="fieldset-wrapper">
</div>
</fieldset>
<input type="hidden" name="form_build_id" value="form-87Dv5ezVpaLI5mD345ofMkLgPhsv_dawudUp73ePQTc" />
<input type="hidden" name="form_token" value="sXXINWr7rmParm0tRJoEb6QKGIH_QH-ffRSOtnvxYY0" />
<input type="hidden" name="form_id" value="form_Chercheur" />
</div>
</form>
As you can see, two extraneous divs are added here. They are making the javascript I'm writing uselessly complicated, so I was wondering if there was a way to remove the extraneous divs. Ideally, I would like to obtain something like this:
<form action="/drupal-7.15/?q=chercheur" method="post" id="form-chercheur" accept-charset="UTF-8">
<fieldset class="form-wrapper" id="edit-myfieldset">
</fieldset>
<input type="hidden" name="form_build_id" value="form-87Dv5ezVpaLI5mD345ofMkLgPhsv_dawudUp73ePQTc" />
<input type="hidden" name="form_token" value="sXXINWr7rmParm0tRJoEb6QKGIH_QH-ffRSOtnvxYY0" />
<input type="hidden" name="form_id" value="form_Chercheur" />
</form>
Is this possible?