jQuery in Action, 2nd edition*
The moose likes HTML, CSS and JavaScript and the fly likes What is wrong with my javascript! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "What is wrong with my javascript!" Watch "What is wrong with my javascript!" New topic
Author

What is wrong with my javascript!

forums UseR
Ranch Hand

Joined: Feb 24, 2009
Posts: 169
Hello Ranchers,

I am calling a javascript function to create a cookie. Here is my code:



This doesn't set the cookie 'selection' . What is wrong with the code above...

Thanks
forums UseR
Ranch Hand

Joined: Feb 24, 2009
Posts: 169
I got it working finally. Here is the code that worked...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: What is wrong with my javascript!
 
Similar Threads
Pre select a dropdown using cookie.
Cookie Path does not set properly
Reading the Domain Attribute of a Cookie in JS
Loop through cookies and get value for a particular cookie name.
reg cookies and its syntax..