jQuery change input type

后端 未结 10 722
终归单人心
终归单人心 2020-12-01 04:24

Trying to change input type attribute from password to text.

$(\'.form\').find(\'input:password\').attr({type:\"text\"         


        
10条回答
  •  遥遥无期
    2020-12-01 05:07

    This should work easily.

    $("selector").attr('type', 'hidden'); 
    //Changing it to hidden
    

提交回复
热议问题