Jump to content

Recommended Posts

I need help with a drop box.  Not a button that opens sub menus but I need a drop box like this...here the drop box is dropped down

http://irt.austincc.edu/blackboard/images/dropbox_send.gif

 

the ones where u click the little arrow on the right and more options come down

 

 

now i know how to create one of those but, how do u make it so, if drop box 1 says "size 1" and drop box 2 says "color:blue" it goes to one link

 

but if one drop box says "size 1" and the other says "color:green" it goes to another link?  thanks so much guys.

Link to comment
https://forums.phpfreaks.com/topic/105534-easy-drop-down-boxmenu-question/
Share on other sites

 

 

got it!!

 

thanks people!

 

<html>

<body>

 

 

<form name="myform"><select name="obj1"><option>blah</option></select><select name="obj2"><option>blah

 

blah</option></select><input type="button" value="Go"

 

onClick="go(document.myform.obj1.value,document.myform.obj2.value)"></form>

<script type="text/javascript">

 

function go(obj1, obj2)

{

if(obj1=="blah" && obj2=="blah blah") document.location.href="http://www.go.com";

}

</script>

maybe not. this works but..its for a site that sells brochures, these brochures have many different options

 

 

if i do an "if this do that" for every option, itll take forever and get confusing. what else can i do?

 

 

these broshires have say, 3 dif thicknesses, then 3 different fold options, 3 different color options and say ...3 different size options. what can i do to make this easier?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.