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

Change php variable from jquery value using ajax (same page) -

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

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