Drupal form with custom ID

Posted by Andrew on Stack Overflow See other posts from Stack Overflow or by Andrew
Published on 2010-05-14T01:12:47Z Indexed on 2010/05/14 1:14 UTC
Read the original article Hit count: 343

Filed under:
|
|
|
|

Correct me if I'm wrong, after reading drupal fapi related articles, I got the impression that fapi generates 'id' attributes by itself. It allows developers to assign 'name' attribute only. If that's the case, is there a way I can set desire 'id' value for elements? Because, I want my elements to have meaningful 'id' so that html/jquery code would be easier to read as well as save my time from going through already written jquery code to change those all 'id's that I've used inside.

P.S:drupal version - 6.x

© Stack Overflow or respective owner

Related posts about drupal

Related posts about form