View Single Post
Old 12-06-2017, 12:37 PM   #8
Sdumau1
Junior Member
Sdumau1 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Dec 2017
Location: Brazil
Device: Sigil
The last Doubt, Doitsu :D

Doitsu, is it possible, give an id to each answer, where one ID for all wrong answers and another id to all "Correct" and use a switch to never appear the image wrong twice?

Like this:

Code:
    <p class="C_Atv_Question"><strong class="Bold">1. First Question</strong></p>

    <p class="C_Txt_Atv"><img alt="" class="Atv" id="Wrong_1" onclick="Atv_Wrong_A(this)" src="../Images/Atv_Normal.png" />Answer 1</p>

    <p class="C_Txt_Atv"><img alt="" class="Atv" id="Wrong_1" onclick="Atv_Wrong_B(this)" src="../Images/Atv_Normal.png" />Answer 2</p>

    <p class="C_Txt_Atv"><img alt="" class="Atv" id="Wrong_1" onclick="Atv_Wrong_C(this)" src="../Images/Atv_Normal.png" />Answer 3</p>

    <p class="C_Txt_Atv"><img alt="" class="Atv" id="Correct" onclick="Atv_Correct_D(this)" src="../Images/Atv_Normal.png" />Answer 4</p>


    <p class="C_Atv_Question"><strong class="Bold">2. Second question</strong></p>

    <p class="C_Txt_Atv"><img alt="" class="Atv" id="Wrong_2" onclick="Atv_Wrong_A(this)" src="../Images/Atv_Normal.png" />Answer 1</p>

    <p class="C_Txt_Atv"><img alt="" class="Atv" id="Wrong_2" onclick="Atv_Wrong_B(this)" src="../Images/Atv_Normal.png" />Answer 2</p>

    <p class="C_Txt_Atv"><img alt="" class="Atv" id="Correct" onclick="Atv_Correct_C(this)" src="../Images/Atv_Normal.png" />Answer 3</p>

    <p class="C_Txt_Atv"><img alt="" class="Atv" id="Wrong_2" onclick="Atv_Wrong_D(this)" src="../Images/Atv_Normal.png" />Answer 4</p>

Thats what im trying to do, i put the same ID for each answer, but i put the number of the Question too, how you can see with "Bold" on the code block.
Do you thing is it possible solve my problem doing that?

What im trying to do is equal a CheckBox, but the "Box" of the checkbox, is an image.

If you can, please help me with that. I need so much
Sdumau1 is offline   Reply With Quote