• Add table with Heading “Online Book Price Detail by : Your Roll-Number ” • Create a dropdown menu for Subjec
-
• Add table with Heading “Online Book Price Detail by : Your Roll-Number ” • Create a dropdown menu for Subject categories. • Add any 3 Categories of books in first dropdown menu. • Create another dropdown menu for books. • Add 2 / 3 books dynamically against each category in second dropdown. • Make a button, When You click on button it show the message o “Price of Selected Book is Rs. Price”.
-
Answer:
<html> <head> <script type ="text/javascript"> function find() { alert ( "Price of the selected book is Rs.100" ) } function loadBooks() { if ( document.test.subject.value == "s1" ) { document.test.books.options[0] = new Option ("Intro to Computers", 0) document.test.books.options[1] = new Option ("Intro to C++", 1) document.test.books.options[2] = new Option ("Intro to Java", 2) } if ( document.test.subject.value == "s2" ) { document.test.books.options[0] = new Option ("Algebra", 0) document.test.books.options[1] = new Option ("Calculus", 1) document.test.books.options[2] = new Option ("Geometry", 2) } if ( document.test.subject.value == "s3" ) { document.test.books.options[0] = new Option ("Organization Behaviour", 0) document.test.books.options[1] = new Option ("Operations Research", 1) document.test.books.options[2] = new Option ("Administration", 2) } } </script> <head> <body> <br/> <form name = "test" > <table border = 01 width = 100% > <tr><th colspan = 2 bgcolor="#6666FE"> <font color="#FFFFFF">Online Book Price Detail by : </font> <font color="#FF0000">Your Roll-Number </font> </th></tr> <tr><td bgcolor="#6666FE"><font color="#FFFFFF">Select Category</font></td> <td bgcolor="#6666FE"><select name = "subject" onclick = loadBooks() > <option value = "s1">Computer Science</option> <option value = "s2">Mathematics</option> <option value = "s3">Management Science</option> </select></td></tr> <tr><td bgcolor="#6666FE"><font color="#FFFFFF">Select Book</font></td> <td bgcolor="#6666FE"> <select name = "books" > <option> Please select one of the options above first</option> </select></td></tr> <tr align =center ><th colspan = 2 bgcolor="#6666FE"> <input type="button" value="Submit" onclick = find() /></th></tr> </table> </form> <p> </p> </body> </html> NOW ITS THE FULL & FINAL SOLUTION (SOURCE CODE) I HAVE GIVEN ALOT OV TIME TO IT THEN I CAME TO COMPLETE IT!!!
sana b at Yahoo! Answers Visit the source
Other answers
Dear Sana, The answer to this question is simple but quite logical. Due to the shortage of time, I cant answer to your question right now, but I will post it inShaAllah next Day. You can add me in your contact list my id is: [email protected] You can also visit my web: www.vumonsters.com you will get the solution uploaded there.
Smile G
Related Q & A:
- How to create a dropdown user control?Best solution by Stack Overflow
- What is Hash Table, how to create a hash table?Best solution by Stack Overflow
- How to create a table in PHP with MySQL?Best solution by Stack Overflow
- How to create a table in gmail?Best solution by Web Applications
- How Can I Create an XML to Create a Menu?Best solution by Drupal Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.