Add placeholder or default value to captcha text field There is a webform in my website, I added the captcha to this webform using this code:

function THEME_form_alter(&amp;$form, $form_state, $form_id) {
    if (strstr($form_id, 'webform_client_form')) {
        $form['my_captcha_element'] = array(
                '#type' =&gt; 'captcha',
                '#captcha_type' =&gt; 'image_captcha/Image',
        );
    }
}


This works fine. I need to insert a placeholder or default the text field of the image. I mean in the following picture :



the What code is in the image? should move inside the text field. How do I can do this?

Even though it is possible to make this done using javscript but I need to make this done using form alter.

Thanks
you can use this module too:

https://www.drupal.org/project/form_placeholder

it worked for me very nice