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
Post a Comment