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
Sourabh Dhiman
NA
49
5.5k
Get Particular Id.
Apr 17 2021 4:22 PM
How to get Particular Id li click .
<ul class="list-group--alt">
@foreach (var category in Model)
{
<li><a href="/
[email protected]
">@category.Title</a></li>
}
</ul>
<script>
$(document).ready(function () {
debugger;
$('.li').on('click', function () {
var id = $(this).parent('ul').attr('id');
alert(id);
});
});
</script>
Reply
Answers (
1
)
HTML Multi select options drop down
Creating multiple Page search/filtering system in best possible way