jquery 怎么给文本框赋值
可以通过两种方法来给文本框赋值:
1.通过jquery方式的val来赋值
$("#realname").val("100");//赋值
2.通过原生js给文本框value来赋值
document.getElementById("realname").value="100";
THE END
0
二维码
打赏
海报
![](http://www.chillifish.cn/wp-content/uploads/2018/03/WeiXin_Shoukuan_G.png)
![](http://www.chillifish.cn/wp-content/uploads/2018/03/ZhiFuBao_Shoukuan_G.png)
jquery 怎么给文本框赋值
可以通过两种方法来给文本框赋值:
1.通过jquery方式的val来赋值
$("#realname").val("100");//赋值
2.通过原生js给文本框value来赋值
document.getElementByI……
![](http://www.chillifish.cn/wp-content/uploads/2018/03/logo_G.png)
共有 0 条评论