Show list of options using JavaScript prompt -


in javascript, possible show list of options click using prompt window, instead of list of options typed in manually?

i'd present each option button, instead of asking user type options manually (as shown here):

var optionchosen = prompt('enter 1, 2, 3, or 4:')

you can't that.

you can use jquery dialog box that

see here jquery dialog

var selected = 0; $('#id').dialog({   buttons: {     "first": function() {       selected = 1;     },     "second": function() {       selected = 2;     },     "third": function() {       selected = 3;     },     "fourth": function() {       selected = 4;     }     ...............   } }); 

Comments

Popular posts from this blog

How can I fetch data from a web server in an android application? -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -

jquery - How can I dynamically add a browser tab? -