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:'/'});
精彩评论