JQuery给textarea取值和赋值
取值
varqrcodefortemcontent=$("#qrcodefortemcontent").val();
赋值
$("#qrcodefortemcontent").val(“123”);
JQuery给label
取值
next_openid=$("#next_openid2").text();
$("#hasnext2").text('YES');
$("#hasnext2").text('YES');
JQuery给input
取值
qrcodeforeverflag=$("#qrcodeforeverflag").val();
赋值
$("#qrcodeforeverflag").val(“123”);
tips:在html标签中使用‘’或者“”有时候是有差异的,使用“”保险些,但是在存在转义的时候需要用''


本文转载自中文网


本文转载自中文网
如需转载,请注明文章出处和来源网址:http://www.divcss5.com/html/h55672.shtml