module - Change form field style in Drupal 7 -


i creating drupal 7 module.

i have textfield :

$form['gestionvideos_videos']['input'] = array(         '#type' => 'textfield',         '#prefix' => '<div id="customsearch">',         '#suffix' => '</div>',         '#attributes' => array('onkeyup' => 'search();'),       ); 

and want put image in front of it, , align both of them on right of container. have no clue how ?

thanks help

$form['gestionvideos_videos']['input'] = array(     '#type' => 'textfield',     '#prefix' => '<img src="/image.jpg" align="left" width="20px" height="20px"/><div id="customsearch">',     '#suffix' => '</div>',     '#attributes' => array('onkeyup' => 'search();'),   ); 

Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -