The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

Reply to this topicStart new topic
> Select button based on 2 criteria
post Sep 5 2017, 04:10 PM
Post #1

Group: Members
Posts: 1
Joined: 5-September 17
Member No.: 26,488

Hi - brand new here and just getting started with webpages. I've figured out the basics - how to make a couple dropdowns, submit buttons etc.

However this case has me stumped. I have 2 drop down selections - the user picks 1 from each - and then a submit button to match those 2 results to a certain youtube video.

For example:
The first dropdown could have "Mom", and "Dad", and the second could have "kid1" and "Kid2" - each combo would link to a different video after clicking the submit button (that would have those 2 people in it). I can't figure out how to write code to match the criteria to a certain link sad.gif

My apologies if this is to simplistic for here..

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
post Sep 5 2017, 05:12 PM
Post #2

This is My Life

Group: Members
Posts: 1,491
Joined: 27-April 13
From: Edinburg, Texas
Member No.: 19,088

Are you trying to use Javascript only? Or, is a server side language being used also? (ASP, PHP, Java....)

When you click a submit button the form is submitted and the data sent to the server for processing. If you are not using a web server then you need to use a regular button, not a submit button. And, you have to use Javascript for all your processing.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


- Lo-Fi Version Time is now: 23rd June 2018 - 02:52 AM