subject

I am trying to get two checkboxes on my app to work like in the pictures This is my code right now:

function Checkboxes() {
if (getChecked("SoundCheck") && getChecked("PhoneticCheck")) {
setText("FirstBox", "Please select one box");
} else if ((getChecked("SoundCheck"))) {
setText("FirstBox", "Press GO! to learn what animals sound like");
} else if ((getChecked("PhoneticCheck"))) {
setText("FirstBox", "Press GO! to learn how to pronounce animal names");
}
}

FirstBox is the name of the textbook the descriptions are supposed to show up in
SoundCheck and PhoneticCheck are the names for the checkboxes

I am trying to get the If-Then statements to loop however I am unsure as to whether to use a for loop or a while loop as those are the only options I have to use and what to write in the code for the loop. I can clarify my question further if my explanation was not good. Help!


I am trying to get two checkboxes on my app to work like in the pictures

This is my code right no
I am trying to get two checkboxes on my app to work like in the pictures

This is my code right no
I am trying to get two checkboxes on my app to work like in the pictures

This is my code right no

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 13:30
Jane’s team is using the v-shaped model for their project. during the high-level design phase of the project, testers perform integration testing. what is the purpose of an integration test plan in the v-model of development? a. checks if the team has gathered all the requirements b. checks how the product interacts with external systems c. checks the flow of data in internal modules d. checks how the product works from the client side
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
For her science class, elaine is creating a presentation on weather in the united states. she wants to make the presentation beautiful and interesting by drawing simple cloud or wave shapes. which is the best way for elaine to draw these shapes?
Answers: 1
question
Computers and Technology, 23.06.2019 09:10
Effective character encoding requires standardized code. compatible browsers. common languages. identical operating systems.
Answers: 1
question
Computers and Technology, 24.06.2019 21:50
Maddie is traveling to india and would like to document her trip for friends and family to access online. what tool would be best? app blog listserver web page
Answers: 1
You know the right answer?
I am trying to get two checkboxes on my app to work like in the pictures This is my code right now:...
Questions
question
Mathematics, 06.10.2020 15:01
question
Mathematics, 06.10.2020 15:01
Questions on the website: 13722360