/    Sign up×
Community /Pin to ProfileBookmark

How To Make Right Answers Green and Wrong Answers Red in Simple MCQ Quiz

How To Make Right Answers Green and All Three Wrong Answers Red MCQ Quiz

Right Answer Are Every Time (data-pos=”0″)

And Wrong Answer Are Every Time (data-pos=”1″) OR (data-pos=”2″) OR (data-pos=”3″)

[image of code](https://i.stack.imgur.com/jERCw.png)

[mcq quiz url ](http://biharshs.in/wp-pro-quiz-1/)

to post a comment
JavaPHP

2 Comments(s)

Copy linkTweet thisAlerts:
@SempervivumJan 31.2021 — That's easy, use this CSS:
<i>
</i>.wpProQuiz_questionListItem[data-pos="0"] {
color: green;
}
.wpProQuiz_questionListItem[data-pos="1"],
.wpProQuiz_questionListItem[data-pos="2"],
.wpProQuiz_questionListItem[data-pos="3"] {
color: red;
}


BTW: In future please don't post code as a screenshot, copy and paste text inside code tags instead: `your code here`
Copy linkTweet thisAlerts:
@tome1122Feb 16.2021 — @Sempervivum#1627434

I will try
×

Success!

Help @mrumang spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.8,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...