开发者

get cookie value in the textbox using jquery or javascript

开发者 https://www.devze.com 2023-04-07 18:01 出处:网络
I want to see cookie value in the textbox. I have used this document.getElementsByName(\'Custom_Field_Custom2\')[0].Val开发者_如何学JAVAue=$.cookie(\'artname\',{ path:\'/\'});

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

精彩评论

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

关注公众号