+ 15
How do i make a choice of yes/no in Java script??
I can use the confirm box but it displays ok/cancel and I want yes/no Please tell 🤔🤔
15 ответов
+ 14
@Kaiza46 Thank you it's a good alternative to the prompt box
+ 12
hey moksh makhija can u tell how to do it??
+ 12
help in what??
making a prompt box with yes/no
or The yes/no buttons
+ 12
Then how to make a prompt box with yes/no??
+ 12
I will say later on
I think by 8 pm
+ 12
I am not able to get the code can u write something by writing your own code
+ 9
use boolean keyword for true or false instead of yes or no
hope it helps !!!
+ 2
You can create two buttons, the first button's value is "yes" and the second button's value is "false". After that, you can use JavaScript and get the value of the button that the user pressed, and then you can make what you want
+ 2
As you wish^^
+ 2
var check = prompt("Yes or no?");
if(check == "yes")
{
//Write your code
}
else
{
//Write your code
}
+ 1
You know how to do it? I can help you if you want^^
+ 1
It works?
0
i want learn hack