By passionatedeloper on
I faced a question of detailed customization of the html output provided by WebForm module. For instance, ordinary html of a form looks like this:
01. <form action="/node/3#node3" accept-charset="UTF-8" method="post" id="webform-client-form-3" class="webform-client-form" enctype="multipart/form-data">
02. <div>
03. <div class="webform-component-textarea" id="webform-component-body">
04. <div class="form-item" id="edit-submitted-body-wrapper">
05. <label for="edit-submitted-body">body: <span class="form-required" title="This field is required.">
06. <textarea cols="60" rows="5" name="submitted[body]" id="edit-submitted-body" class="form-textarea resizable required">
07. </div>
08. </div>
...
09. </div>
10. </form>
In this code example, lines 4-7 can be customized via drupal function "theme_form_element". Whereas lines of code 3 and 8 (defining "webform-component-[component's name]" selectors) seem to come from WebForm module.
I wonder if it is possible to get control over this code that definies divs with "webform-component-something"? Namely, is it possible to get rid of the code?
Thank you for any help in advance!