jQuery设置input的type属性

$("#inputName").attr("type","text");
原文地址:https://www.cnblogs.com/lvlin241/p/9313200.html