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
Post a Comment