Im looking for help to create a prompt/popup box in javascript which shows the drop down values taken from mysql.
for example,
prompt("Choose the number from drop down box", '');
and the drop down box has values taken from mysql database.
I shall be very thankful for your help.
dropdown menu in popup, please help.
Started by Macintosh, Jun 27 2008 02:10 PM
1 reply to this topic
#1
Posted 27 June 2008 - 02:10 PM
#2
Posted 28 June 2008 - 01:34 AM
I don't really understand the question but if you submit a form and its going to this prompt box then you would just do:
var dropchosen = document.formname.selectname.value;
prompt("You chose number: " + dropchosen);
With that you would have to give your form a name="" attribute and the same goes for your select or dropdown box. Then just change those values in that code. Hope that helps any.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
