Why can't I change the type of an input element to submit?

前端 未结 7 1306
盖世英雄少女心
盖世英雄少女心 2021-01-01 11:52

I\'m calling this function:

function submit_button(button_id){
    $(\'#\' + button_id).attr(\'type\', \'submit\');
}

to make this button t

7条回答
  •  别那么骄傲
    2021-01-01 12:03

    It worked finally , try finding the following:

       $("#confirm_button").each(function () 
       { this.type = "number"; });
    

提交回复
热议问题