Home Answers Viewqa JSP-Servlet html dropdownlist code

 
 


raghavendra
html dropdownlist code
1 Answer(s)      2 years and 11 months ago
Posted in : JSP-Servlet

hi
how to get textfield in html when i select the option others in the dropdown list, pls provide the code?

View Answers

June 30, 2010 at 12:00 PM


Hi Friend,

Try the following code:

<html>
<head>
<script>
function show(){
var op= window.document.getElementById('select');
var selItem= op.options[op.selectedIndex].value;
if(selItem=="Others"){
document.getElementById('text').style.visibility = 'visible';
}
else{
document.getElementById('text').style.visibility = 'hidden';
}
}
</script>
</head>
<select id="select" onchange="show();">
<option value="A">A</option>
<option value="B">B</option>
<option value="C">C</option>
<option value="D">D</option>
<option value="E">E</option>
<option value="Others">Others</option>
</select><br>
<input type="text" id="text" style="visibility:hidden">
</html>

Thanks









Related Pages:
html dropdownlist code - JSP-Servlet
html dropdownlist code  hi how to get textfield in html when i select the option others in the dropdown list, pls provide the code?   Hi Friend, Try the following code: function show(){ var op
DropDownList in Flex4
to that of the SELECT form element in HTML. The DropDownList control consists...DropDownList control in Flex4: The DropDownList control contains a drop-down... provide the data to the DropDownList control by using the DataProvider(<s
Values from servlet into dropdownlist in jsp page using ajax
servlet into dropdownlist of jsp page...kindly check the code attached and tell me...Values from servlet into dropdownlist in jsp page using ajax  1) jsp...;%@ page language="java" contentType="text/html; charset=ISO-8859-1
how to get data from database into dropdownlist in jsp
how to get data from database into dropdownlist in jsp  Customer Name:<select name="name"> <% try{ Class.forName... tell me what is the problem in this code
how to get data from database into dropdownlist in jsp
how to get data from database into dropdownlist in jsp  Can anybody tell me what is the problem in this code as i am not able to fetch the data from the database and set it into dropdown list in jsp please help <br/>
HTML code
HTML code  How do I keep people from stealing my source code and/or images
html
html  How to add the calendar in html code
By dropdownlist retrive data from database and show in textbox in jsp.
By dropdownlist retrive data from database and show in textbox in jsp. ..., when I select value from dropdownlist, and that data I want to show in textbox. Please suggest some ajax code that will work. your suggestion will be helpful
Html
Html  in the web page if judge select the age and category then automatically under that conditions the details will be display in the form of grid give me that code in html and java
html
html   write a html program to print "HELLO WORD"in red coaler font size 12 and italic stile   Here is a html code that display the message "Hello World" in red font with size 12 and in italics. <html> <
Html
Html  i am select the dateofbirth through the html browser.but it can not save into the sql server 2008 database.any special code required to store the date in database by using java servlets
Html
Html  I was designing a webpage, i need to create selection boxes one beside other, how i'll be able to do it using HTML code, Please give me a sample code for that... looking forward for your usefull code
HTML
is located in a directory different from the HTML file.The info.html file I have created is below. <HTML> <HEAD> <BODY> <APPLET Code = WelcomePage.class width=300 height=300> I want to know if the code
HTML
the file give me the code for this in html and java...HTML  in html how can we can upload the file <tr> <td><strong>Video of the work:</strong> <td><b>
Html
:48:44 PM Author : SAMSUNG --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01...; <head> <meta http-equiv="Content-Type" content="text/html
Html
:48:44 PM Author : SAMSUNG --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01...; <head> <meta http-equiv="Content-Type" content="text/html
HTML
where i can store in the database SEND ME THE CODE FOR THIS IN JAVA AND HTML
Html
Html  in html form for the address by using input as textarea i am writing the code as <tr> <td valign="top"><strong>Address: </strong></td> <td><textarea name="Address" rows="8
html
html   HTML document with Javascript to count the number of vowels in a text typed in text area. please send the code.   Hi Ravi Here is the code ..I hope this will solve your problems : <!DOCTYPE HTML PUBLIC
html
html  Already i am using this code but its not working ur coding: <tr><td valign="top"><strong>Address: </strong></td><td><textarea name="Address" rows="8" cols="30"> </td><
HTML
it shows as null. here is the html code for date of birth: <tr> <
HTML
HTML  Following is the my coding.but when i click on submit it can not take the form action **Here is my code** <html> <head> <body><form method="post" action="http://localhost:8080/sss/post"><
HTML
HTML  Following is the my coding.but when i click on submit it can not take the form action **Here is my code** <html> <head> <body><form method="post" action="http://localhost:8080/sss/post"><
html code for student information?
html code for student information?  html code for student information
dynamic retrival of data from mysql database to dropdownlist in jsp
dynamic retrival of data from mysql database to dropdownlist in jsp  ... database to the dropdownlist in jsp. Example: 1st i want to display the list...)For the above code, we have created following table: CREATE TABLE `dept
javascript dropdownlist
, newOpt, true, true); } } } </script> //dropdownlist <select name
Pagination example with html code
Pagination example with html code  Hi, could u please provide pagination code with clear cut explanation. Thanks in advance
HTML - Strikethrough code.
HTML - Strikethrough code. Description : The strike is a html tag. When you... Markup Language</strike> Code : <!DOCTYPE html PUBLIC ".../TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http
HTML link code.
HTML link code. Description : It is also called hyper link. HTML provides...;/a> Code : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0.../TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
HTML - Image link code.
HTML - Image link code. Description : HTML image link is a combination... is  used as a text of anchor tag. Code : <!DOCTYPE html PUBLIC...;h1>Example of HTML Link code.</h1> <p>Please visit
Html Code - Development process
Html Code  Hi,Can u give me code for Html . headers are Date, Name and Dept . Inside Date column i want to split 2 columns. like In and Out. I have tried colspan tag , but i couldnt get d output. Thank u in advance 
HTML
apply horizontal rule, the <hr> tag is used in a HTML code.  ..., the code explain an alignment of image in HTML. For this we start with a<html>... in HTML. In this Tutorial, the code create a HTML Page, which depicts you how
HTML login page code
the complete HTML JavaScript code for User Login Page. Thanks in Advance!   ...: " + form.pwd1.value); return true; }   html registration form code...HTML login page code  Hi all, I am writing my first HTML JavaScrip
how to space images in html code
how to space images in html code  how to space images in html code
html code problem - Java Beginners
html code problem  Hi, Thank u for fast reply. In HTML form, more than one file 'action' is possible or not. regards, sakthi  Hi friend, In HTML in one form having One file action is possible. Thanks
HTML Color Code for White
HTML Color Code for White In this page you will find the hexadecimal color code for White color. The hexadecimal color code for white is #FFFFFF or #ffffff... Name Color code Color White  #FFFFFF   See more
Html code for search - Development process
Html code for search   Hi, when i click search button .It has to display table with data. I have completed design only. Plz give code... if you want to use HTML code with JSP and Servlet to search from database
HTML code example
HTML code examples In this section we are giving many html code examples which will be very useful for developers. The examples of HTML code given here... to create rich web pages and web applications. HTML Code Examples Paragraph
Html Code for frames - Development process
Html Code for frames   Hi, Can u plz send code for Frame navigation using html only.When i click link in first frame , data has... the following code it requires at least 3 files : Index.html where we will put
Editable Html
Editable Html  i have editable html table with following elements textbox(n),checkbox(n),sno,dropdownlist..this elements are generated in runtime using javascript by taking the row count from user...now the problem, i dont know
generate java code and html code - Java Beginners
generate java code and html code  create a web application for museum....a)the first page wil be a login page for administrators.. passwords for all acounts should be stored in the database and checked on login... on success ogin
Html/JavaScript code - JSP-Servlet
Html/JavaScript code  I have 2 JSPs JSP1 and JSP2. 1.in JSP1 i..., ------------------------------------------ If, you have any problem then , please send me detail with code. Thanks.  ok this is code snippet of JSP1 that is used to display teh table. --JSP1
HTML Color Code for purple
HTML Color Code for purple In this page you will find the hexadecimal color code for Purple color. The hexadecimal color code for dark purple is #800080. HTML Purple color is of two types: Dark Purple Light Purple Here
View source code of a html page using java ..
View source code of a html page using java ..  I could find the html source code of a web page using the following program, http://download.oracle.com/javase/1.4.2/docs/api/java/net/URLConnection.html i could get the html code
to run html code in web browser - JSP-Servlet
to run html code in web browser  how to run jsp file which calls html file on web browser??  Hi Friend, Try the following code: 1)form.jsp: Enter Name: 2)welcome.html: Add Profile Edit
HTML Upload
HTML Upload  Hi, I want to upload a word / excel document using the html code (web interface)need to get displayed on another webpage. Please let me the coding to display on another webpage using
Displaying html code in pdf with itext - Java Beginners
Displaying html code in pdf with itext   Hi , I am geeting data which was enterd from fck editor. same data is stored... the pdf . i am using HTMLWorker to convert the html data . but styles
How to hide HTML code from user? - Security
How to hide HTML code from user?  Hi All, I am trying to provide... viewing HTML source code. Can any one guide me for this topic? Thanks... showing source code is by generating the elements on the page using javascript
HTML pages.
HTML  pages. Description : HTML is a hypertext markup language. Every HTML page has two part one head part another is body. It will  run... which is  available in it will be display on browser. Code : <
java with html
java with html  actually we use html code in the java programs........ why we are using like please tell me the reason.. please reply me soon

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.