jquery - Trying to get a drop down list in a Javascript pop up -


I am trying to get a drop down list in a javascript pop-up box. Start

  function () {var name = prompt ("Hello, what is your name?") If (isNaN (name)) {confirm ("hello" + name + "!" ) Var race = prompt ("What race are you (first letter uppercase please)") if (race == "human") {confirm ("You are a great race that safeguards on harming your family and children ) "Var startTown = prompt" (What is your city? ")} And if (race ==" Orsie ") {confirmed (" Hello Orc. Your Assassin Journey Begins! ")} Else {}}}   

Edit: I'm trying to get the drop down list for the Var startdown () function. I'm trying to get a list of custom names in a drop down box in javascript pop up

Prompt () The component can only accept text input You can not do a prepopulated list or anything If you want something like this, you can use many jQuery modal windows Can and, I code a and lt; Select & gt; will add tags.

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -