<input type="text" value="" id="mmm"> // HTML
document.getElementById("mmm").value="值"; //JS 原版赋值方法
Jquery
$("#mmm").val("值");
$("#mmm").attr("value",值);
<input type="text" value="" id="mmm"> // HTML
document.getElementById("mmm").value="值"; //JS 原版赋值方法
Jquery
$("#mmm").val("值");
$("#mmm").attr("value",值);