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
Prakash
NA
258
77.9k
mvc
May 18 2015 7:55 AM
hello...I want this(Below code) code in mvc view with javascript..below code can not work.plz help
<script>
function ShowCorrectAnswer()
{
if (document.getElementById("correctAnswerHidden").value == "a" || document.getElementById("correctAnswerHidden").value == "A")
{
$('#optionA').css("background-color", "green");
}
if (document.getElementById("correctAnswerHidden").value == "b" || document.getElementById("correctAnswerHidden").value == "B")
{
$('#optionB').css("background-color", "green");
}
if (document.getElementById("correctAnswerHidden").value == "c" || document.getElementById("correctAnswerHidden").value == "C") {
$('#optionC').css("background-color", "green");
}
if (document.getElementById("correctAnswerHidden").value == "d" || document.getElementById("correctAnswerHidden").value == "D")
{
$('#optionD').css("background-color", "green");
}
}
</script>
Reply
Answers (
6
)
Best and good deploying method to website
Getting Error in fileupload