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
Kalyani Shevale
NA
3.2k
711.6k
Rating star generated in dynamic on perticular topic.
Sep 3 2018 11:46 PM
In MVC
I want Display dynamic rating star on one question and under multiple types and particular type on different rating star in MVC.
the code will be HTML or JS or Jquery.
I have to try this code
for (int
i
=
0
; i
<
values.Length
; i++)
{
<
fieldset
class
=
"rating"
id
=
"@i"
>
@values[i].Trim()
<
input
type
=
"radio"
id
=
"@i"
name
=
"@values[i].Trim()"
value
=
"5+@i"
/>
<
label
class
=
"full"
for
=
"star5"
title
=
"Awesome - 5 stars"
>
</
label
>
<
input
type
=
"radio"
id
=
"star4"
name
=
"@values[i].Trim()"
value
=
"4+@i"
/>
<
label
class
=
"full"
for
=
"star4"
title
=
"Pretty good - 4 stars"
>
</
label
>
<
input
type
=
"radio"
id
=
"star3"
name
=
"@values[i].Trim()"
value
=
"3+@i"
/>
<
label
class
=
"full"
for
=
"star3"
title
=
"Meh - 3 stars"
>
</
label
>
<
input
type
=
"radio"
id
=
"star2"
name
=
"@values[i].Trim()"
value
=
"2+@i"
/>
<
label
class
=
"full"
for
=
"star2"
title
=
"Kinda bad - 2 stars"
>
</
label
>
<
input
type
=
"radio"
id
=
"star1"
name
=
"@values[i].Trim()"
value
=
"1+@i"
/>
<
label
class
=
"full"
for
=
"star1"
title
=
"Sucks big time - 1 star"
>
</
label
>
</
fieldset
>
}
please help me.
Reply
Answers (
1
)
How to populate a new[] array using a loop
Hashtag functionality like Instagram using C#