I'm trying to add an information icon next to a custom form label. When users hover the cursor over that icon, it should display the label description.

I know '#attributes' => array('title' => t("text description")) would show the help text when hovering the cursor over the text area. In my case, it should be added to the icon next to the field label.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.