Jump to content


dropdown menu in popup, please help.


1 reply to this topic

#1 Macintosh

    Young Padawan

  • Members
  • Pip
  • 28 posts

Posted 27 June 2008 - 02:10 PM

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.

#2 JoeyMagz

    Young Padawan

  • Members
  • Pip
  • 78 posts
  • Gender:Male
  • Location:Chesapeake, VA

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