Value or label inside a exposed search form and change input form I've created a three exposed filters:


Search
Choose location
Choose category


Instead of using a label "Search", in input field I want to have a "enter keywords to search" and when the user clicks on that input the letters will disappear. I've seen this in many websites.

Choose location has a label "Choose location" and in drop down menu the first option is "All". Instead of using label, I want the first option (All) to be "Choose location".

Choose category to be exactly like the location desired method.

I'm using Drupal 7.
For adding text to your input field, can be done in one of two ways

    function myhook_form_alter(&amp;$form, &amp;$form_state, $form_id){
        if($form_id == "views_exposed_form"){
         dsm($form); // print $form array on the top of the page
          if (isset($form['title'])) {
            $form['title']['#attributes'] = array('placeholder' =&gt; array(t('Enter Keywords to search...')));
    }
  }
}


Or use Compact form


  Compact Forms presents text fields for selected forms in a more
  compact fashion using jQuery.
  
  The form item/element fields are overlaid with their respective
  labels. When the user focuses a field the label fades away nicely, and
  if the field is left empty the label fades back in again.


For changing the All to choose location

function your_module_name_form_alter(&amp;$form, $form_state, $form_id) {
      if($form_state['view']-&gt;name == 'your_view_name') {
        $form['your_dropdown_name']['#options']['All'] = t('- Choose Location -'); 
      }
}