views:

42

answers:

0

Is there a solution to add an id to the default drupal error list items?

Currently i got this:

<div class="messages error" id="inline-messages">
    <ul>
        <li>Name is required.</li>
        <li>Email is required.</li>
        <li>Message is required.</li>
    </ul>
</div>

But i would like to have the fieldname as id:

<div class="messages error" id="inline-messages">
    <ul>
        <li id="form-field-name">Name is required.</li>
        <li id="form-field-email">Email is required.</li>
        <li id="form-field-message">Message is required.</li>
    </ul>
</div>

Plugins in use: http://drupal.org/project/inline_messages

Any suggestions?

related questions