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
Sunny Dhiman
NA
81
6k
How to set multiple value in cookies
May 12 2021 5:32 AM
How to set multiple value in cookies single li click
this is my code
@foreach (var category in Model)
{
<li id="@category.CategoryId"><a href="/blog/category/@category.UrlSlug">@category.Title</a></li>
<li title="@category.Title"><a href="/blog/category/@category.UrlSlug"></a></li>
}
</ul>
<script>
$(document).ready(function () {
$(".category-list li").on("click", function () {
debugger;
var CategoryId = this.id;
Cookies.set('CategoryId', CategoryId);
var Title = this.title;
Cookies.set('Titile', Title);
});
});
Reply
Answers (
1
)
I want to multiple file record at a time with same id
How to Display login User Detail after Login