user959128
user959128

Reputation: 957

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].Value=$.cookie('artname',{ path:'/'});

but that cookies value is not displaying in the textbox.

What I need to do?

Upvotes: 1

Views: 977

Answers (2)

James Hill
James Hill

Reputation: 61792

value is case sensitive. Try:

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

Upvotes: 1

Pointy
Pointy

Reputation: 413720

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

Upvotes: 1

Related Questions