Drupal ajax call within form I am trying to call ajax call within form. here is my code 

&lt;?php

function clicktell_form_alter(&amp;$form, &amp;$form_state, $form_id) {
    //print_r($form);

    if($form_id=='user_register_form') {

        $form['choice_wrapper']['poll_more'] = array(

            '#type' =&gt; 'submit',

            '#value' =&gt; t('More choices'),

            '#description' =&gt; t("If the amount of boxes above isn't enough, click here to add more choices."),

            '#weight' =&gt; 1,
            "#executes_submit_callback" =&gt; FALSE,


            '#ajax' =&gt; array(

                'callback' =&gt; 'poll_choice_js',

                'wrapper' =&gt; 'poll-choices',

                'method' =&gt; 'replace',

                'effect' =&gt; 'fade',

            ),);


    }
}

function poll_choice_js($form, $form_state) {
    print_r($form_state);
    return $form['choice_wrapper']['choice'];

}


when i click on more choice button it is not calling poll_choice_js function. i checked this in firebug but didn't get any result

Thanks
For the ajax callback  and hook_form_alter() to function you should clear the caches from the performance link.
Also you should change the following

return $form['choice_wrapper']['poll_more'];