TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Guest User
Tech Writer
31
22.7k
Cookies in jQuery
May 11 2017 1:17 AM
<script src=
"https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.2.1.min.js"
></script>
<script src=
"js-cookie-master/src/js.cookie.js"
></script>
<script>
$(
function
() {
$(
"button"
).click(
function
() {
alert(
"You clicked Submit button"
);
var
uid = $(
"#username"
).val();
var
pwd = $(
"#password"
).val();
$.cookie(
"username"
, uid);
$.cookie(
"password"
, pwd);
alert(
"username ="
+ uid +
"password = "
+ pwd);
});
});
</script>
Here's my js to create cookie using jQuery. But it is not working. Why?
Reply
Answers (
2
)
can we disable firebug or firelight using jquery
Validation with jquery