I want to style the label of my select list with bold font and give it some color.
This is the code for rendering form which I am using in a hook_block_view
$form['dropdown_first'] = array(
'#type' => 'select',
'#title' => 'City',
'#options' => $options_first,
'#prefix' => '<div style="font-weight:bold; color:#FFF">',
'#suffix' => '</div>',
'#default_value' => $selected,
'#ajax' => array(
'callback' => 'get_citylocations_dropdown',
'wrapper' => 'dropdown-second-replace',
),
);
The #prefix and #suffix is wrapping entire select list and effecting/applying the select list which is not I want. I just want to style the <label>City</label>
to something like<label style='my style code goes here'>City</label>
Its not working as I expected.
How do i do it?