Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa JSP-Servlet html dropdownlist code
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


raghavendra
html dropdownlist code
1 Answer(s)      4 years and 9 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?


Advertisement
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 Tutorials/Questions & Answers:
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
HTML code
HTML code  How do I keep people from stealing my source code and/or images
Advertisements
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
html code for student information?
html code for student information?  html code for student information
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 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
javascript code for search in html file
javascript code for search in html file  Hi, I am looking for javascript code through which we can search data with specific name find in any rows in the table. Example: Id Name P001 A P002 B P003 C P004 P002 P005
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
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 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
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
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
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 code to servlet to database using jdbc
HTML code to servlet to database using jdbc  pls send me the code related to the title   Hi Friend, Try the following code: 1)form.html...=req.getParameter("msg"); res.setContentType("text/html"); PrintWriter
Html Code - Design concepts & design patterns
Html Code  Hi, Can u give me html code.I have 4 items in combo box , wen i select one item it has to display list of data in another list box..., Try the following code: ComboBox var arr = new Array(); arr[0] = new
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/>
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("com.mysql.jdbc.Driver"); Connection con=DriverManager.getConnection("jdbc:mysql://localhost
 

 

 

DMCA.com