Question

I'am creating a web application but i need help selecting an item from a drop down...

I'am creating a web application but i need help selecting an item from a drop down list. I want to select an item from my list, then click the next button and open a new screen with information on the item selected from list.

How can this be done using JavaScript?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer:

Here i am giving you the simple html code to achieve the requirement you posted.

Html Raw code:

<!DOCTYPE html>
<html>
<!-- html open tag -->
<head>
<!-- head open tag -->
<title>Select a site</title>
<!-- declared title to be displayed on the webbrowser tab -->
</head>
<!-- closed head tag -->
<body>
<!-- opened body tag -->
<center>
<!-- center tag to display the content in the center -->
<h2>Select an option from the dropdown list and click on go button it will take you to the new tab </h2>
<!-- heading 2 tag for the instruction -->
<form name="Take_me_to_the_link">
<!-- form tag -->
<select name="dropdown_menu" id="dropdown_menu" >
<!-- drop down tag with select -->
<!-- options -->
<option value="" selected>Please Select Site</option>
<option value="websiteone.html">First</option>
<option value="websitetwo.html">Second</option>
<option value="third.html">Third</option>
<!-- please pass the website files relative or absolute paths to get working -->
<!-- end of options -->
</select>
<!-- end of select tag -->
<!-- declared a button and wrote the inline javascript code on onClick function with will open the value from the option of dropdown menu -->
<input type="button" name="Submit" value="Go!" onClick="window.open(dropdown_menu.value,'newtab'+dropdown_menu.value)">
</form>
<!-- end of form tag /\ -->
</center>
<!-- end of center tab -->
</body>
<!-- end of body tag -->
</html>
<!-- end of html tag -->

Code in the editor:

output in the google chrome

output after clicking the go button adimit the new tab came and opened the html file

Hope this helps to you

If you still have any doubts or queries Please feel free to comment in the comment section.

Thank you! do upvote.

Add a comment
Know the answer?
Add Answer to:
I'am creating a web application but i need help selecting an item from a drop down...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • I need help creating a program in Visual Basic, (I'm using Visual Studio 2013), that will...

    I need help creating a program in Visual Basic, (I'm using Visual Studio 2013), that will start with a screen welcoming people to a student database management system. It will then ask them to click next to take them to another screen that will have 5 tabs. Student enquiry, Registration, courses, faculty, and fee payments. Depending on what is clicked will take them to that screen and have information related to that on that screen. It doesnt have to be...

  • VB.net sorting datagridview columns by selecting combobox item. Hey guys im stuck on a problem within...

    VB.net sorting datagridview columns by selecting combobox item. Hey guys im stuck on a problem within my project, I have a datagridview named petdatagridview which is populated with data from an sql table called pet. I have a combobox on the same form as the datagridview named comboboxsort, next to the combobox is a button that changes the sort mode from ascending to descending when clicked I have bound data to the combobox using the following code: Dim conn As...

  • Please help with this assignment section A. This question is from world wide web Info Sys Dev. Section A te HTML/JavaSc...

    Please help with this assignment section A. This question is from world wide web Info Sys Dev. Section A te HTML/JavaScript web page called sectiona.html, that has the fpllowing items: a. 2 text items labeled as "CAD Dollar" and "US Dollar", the first(CAD dollars) is enabled with id-"cad", while the later is disabled with id-us" b.1 button named as "convert". functionality: When the user clicks on the button, a JavaScript function named "convert" will be called to convert the value...

  • The below pic has the drop down options to choose from. I am in need of...

    The below pic has the drop down options to choose from. I am in need of understanding the Directing section. Have some of them filled out but do not know if or what is correct so please ignore the answers that I have selected in the jpeg. Thank you. i Requirements 1. For each of the six departments, choose all appropriate decisions/actions for each of the three stages of management (planning, directing, and controlling). 2. For each of the decisions/actions...

  • HTML Web Page project: Need help to create a web page exactly as the example below...

    HTML Web Page project: Need help to create a web page exactly as the example below using HTML. I need the source code. Page 1 of CA272 Midterm Welcome to your name's CA272 Midterm Text In this class, I learned how to... 1. create an X)HTML web page, where I can 2. change the size of my font, 3. change the color of my fonts, 4. change my font style, 5. and change the background color of my web page....

  • I need help with my javascript project, I've started on it but I can't seem to...

    I need help with my javascript project, I've started on it but I can't seem to get ym java scripts to work with my index.html. Can someone please help me fix my code? I need the main.js & scratchpad.js to work with my index.html .Thank you Directions: Go to the following link: https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/JavaScript_basics On that page, scroll down to "A 'hello world' example". Follow the step-by-step instructions to download their code and edit it in your text editor of choice....

  • 6-1 Test and debug the Invoice Application i need help with this please.. all help is...

    6-1 Test and debug the Invoice Application i need help with this please.. all help is appreciated Source code Java: import java.util.Scanner; import java.text.NumberFormat; public class InvoiceApp { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String choice = "y"; while (!choice.equalsIgnoreCase("n")) { // get the input from the user System.out.print("Enter customer type (r/c): "); String customerType = sc.next(); System.out.print("Enter subtotal: "); double subtotal = sc.nextDouble(); // get the discount percent double discountPercent = 0.0; switch(customerType) {...

  • 1-If you want a user to make a selection from a list of items, and you...

    1-If you want a user to make a selection from a list of items, and you only want them to be able to select ONE item in the list, which type of web form input control should you use? a checkbox a radio button or a drop-down menu a scrollable menu with mutliple selections allowed none of the above 2-<textarea name="contest_entry" rows="5" cols="50"></textarea> The code above will create a: с single line text entry field drop-down menu multiline text entry...

  • I need help creating a netbeans application and linking database with steps Part II – Next,...

    I need help creating a netbeans application and linking database with steps Part II – Next, build a simple Servlet called LoginServlet in your “Bank” Project. Now make it so that when the Customer logs in, the LoginServlet will get called and will validate the user id and password. At first, just make sure that the Servlet gets called correctly. So just print a simple message like “LoginServlet Running…”. Remember, to call the LoginServlet, you will need to modify the...

  • I need help on creating a while loop for my Java assignment. I am tasked to...

    I need help on creating a while loop for my Java assignment. I am tasked to create a guessing game with numbers 1-10. I am stuck on creating a code where in I have to ask the user if they want to play again. This is the code I have: package journal3c; import java.util.Scanner; import java.util.Random; public class Journal3C { public static void main(String[] args) { Scanner in = new Scanner(System.in); Random rnd = new Random(); System.out.println("Guess a number between...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT