开发者

get cookie value in the textbox using jquery or javascript

I want to see cookie value in the textbox.

I have used this

document.getElementsByName('Custom_Field_Custom2')[0].Val开发者_如何学JAVAue=$.cookie('artname',{ path:'/'});

but that cookies value is not displaying in the textbox.

What I need to do?


The "value" attribute is lower-case "v", not "Value".


value is case sensitive. Try:

document.getElementsByName('Custom_Field_Custom2')[0].value=$.cookie('artname',{ path:'/'});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜