1

i have form api element, in which i need to style only a part of it via a given tag

 $form['title'] = array(
  '#type' => 'textfield', 
  '#title' => '<p class="asterix para>"'.t('how much   quantity').'<span>'.t('...please specify').'</span></p>', 
  '#required' => TRUE,
);

the part in span tag, is differently styled. But the problem is, when i run drupal validation on this, the whole title along with tags comes in the message.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.