Page is a not externally linkable
- Code, Content, and Presentation
-- HTML
---- drop down box selection to change text and image link


smallcompany - 4:36 am on Dec 5, 2010 (gmt 0)


First thanks, and then apology for ignorance here. The first code I posted in my last post is what I have and want to start from. The link thing works fine as I use GET to pass the selected variables to PHP script where links site and wait to be used.

For that text portion that is supposed to change based on selections, in the second code I saw this:

document.getElementById("add").value=="1"

The "if" is great for me, but I will always have two values, not one. I need something like this:

document.getElementById("add").value=="1" and "21"

Can I have two values in this fashion, or it has to be something else?

Also, can this be done without javaScript? I doubt, but it does not hurt to ask.

Thanks


Thread source:: http://www.webmasterworld.com/html/4238452.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com