动态改变文本框的属性

$("#pwd_warpper").html("<input type=\"password\"  id=\"password\" onkeydown=\"if(event.keyCode==13){login();return false;}\" " +
    "onfocus=\"showpassword();\" style=\"width:292px;height:38px;padding-left:7px;border:0px;color:#666666;background-image:url(images/input.png);line-height:38px;background-repeat: no-repeat;font-size:22px;text-align:left;\"/>");

你可能感兴趣的:(JavaScript)