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



Home Answers Viewqa Java-Beginners On HTML and JavaScript
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Dedeepya
On HTML and JavaScript
3 Answer(s)      6 years and 3 months ago
Posted in : Java Beginners



Advertisement
View Answers

August 8, 2008 at 5:58 PM


Hi Dedeepya

<html>
<head>
<title>slection box using in javaScript</title>
</head>
<body>
<center>
<table border="1" width="400px" ceelspacing="2" cellpadding="4" bgcolor="lightblue">
<tr>
<td>
<form ACTION="#" NAME=latin>
<font color="red"><b>Select Date and month using JavaScript</b></font><br>
<br>
<select NAME="day" ONCHANGE="alert(document.latin.day.value)">
<option VALUE="- Select -">-Select-</option>
<option VALUE="01">01</option>
<option VALUE="02">02</option>
<option VALUE="03">03</option>
<option VALUE="04">04</option>
<option VALUE="05">05</option>
<option VALUE="06">06</option>
<option VALUE="07">07</option>
<option VALUE="08">08</option>
<option VALUE="09">09</option>
<option VALUE="10">10</option>
<option VALUE="11">11</option>
<option VALUE="12">12</option>
<option VALUE="13">13</option>
<option VALUE="14">14</option>
<option VALUE="15">15</option>
<option VALUE="16">16</option>
<option VALUE="17">17</option>
<option VALUE="18">18</option>
<option VALUE="19">19</option>
<option VALUE="20">20</option>
<option VALUE="21">21</option>
<option VALUE="22">22</option>
<option VALUE="23">23</option>
<option VALUE="24">24</option>
<option VALUE="25">25</option>
<option VALUE="26">26</option>
<option VALUE="27">27</option>
<option VALUE="28">28</option>
<option VALUE="29">29</option>
<option VALUE="30">30</option>
<option VALUE="31">31</option>
</select>
<select NAME="month" ONCHANGE="alert(document.latin.month.value)">
<option VALUE="- Select -">-month-</option>
<option VALUE="Jan">Jan</option>
<option VALUE="Feb">Feb</option>
<option VALUE="march">march</option>
<option VALUE="April">April</option>
<option VALUE="may">may</option>
<option VALUE="jun">jun</option>
<option VALUE="july">July</option>
<option VALUE="Aug">Aug</option>
<option VALUE="Sep">Sep</option>
<option VALUE="Oct">Oct</option>
<option VALUE="Nov">Nov</option>
<option VALUE="Dec">Dec</option>
</select>


August 8, 2008 at 5:58 PM


<select NAME="year" ONCHANGE="alert(document.latin.year.value)">
<option VALUE="- Select -">-Year-</option>
<option VALUE="1980">1980</option>
<option VALUE="1981">1981</option>
<option VALUE="1982">1982</option>
<option VALUE="1983">1983</option>
<option VALUE="1984">1984</option>
<option VALUE="1985">1985</option>
<option VALUE="1986">1986</option>
<option VALUE="1987">1987</option>
<option VALUE="1988">1988</option>
<option VALUE="1989">1989</option>
<option VALUE="1990">1990</option>
<option VALUE="1991">1991</option>
<option VALUE="1992">1992</option>
<option VALUE="1993">1993</option>
<option VALUE="1994">1994</option>
<option VALUE="1995">1995</option>
<option VALUE="1996">1996</option>
<option VALUE="1997">1997</option>
<option VALUE="1998">1998</option>
<option VALUE="1999">1999</option>
<option VALUE="2000">2000</option>
<option VALUE="2001">2001</option>
<option VALUE="2002">2002</option>
<option VALUE="2003">2003</option>
<option VALUE="2004">2004</option>
<option VALUE="2005">2005</option>
<option VALUE="2006">2006</option>
<option VALUE="2007">2007</option>
<option VALUE="2008">2008</option>
<option VALUE="2009">2009</option>
<option VALUE="2010">2010</option>

</select>
</form>
</center>
</td>
</tr>
</table>
</body>
</html>

-------------------------------------


Thanks.

Amardeep


August 12, 2008 at 11:04 AM


Thanks Amardeep

Hope my question is not clear.
Now...

<select NAME="month" ONCHANGE="alert(document.latin.month.value)">
<option VALUE="- Select -">-month-</option>
<option VALUE="Jan">Jan</option>
<option VALUE="Feb">Feb</option>
<option VALUE="march">march</option>
<option VALUE="April">April</option>
<option VALUE="may">may</option>
<option VALUE="jun">jun</option>
<option VALUE="july">July</option>
<option VALUE="Aug">Aug</option>
<option VALUE="Sep">Sep</option>
<option VALUE="Oct">Oct</option>
<option VALUE="Nov">Nov</option>
<option VALUE="Dec">Dec</option>
</select>

In the above example I want the select option to be default selected value but when I click the select box i should only get Jan,Feb,march,April,may,jun,July,Aug,Sep,Oct,Nov,Dec as options to select.But <font color="red">I should not get select as option</font>
Hope my ques is clear.


Related Tutorials/Questions & Answers:
javaScript+Html
javaScript+Html  print("code sample");(Use ExtJS 3 or 4) and create following (HTML, Javascript,ExtJS) a. Create a single page application divided into 4 sections - Top Header, Footer,Left Navigation (Tree), Center Panel
HTML-JAVASCRIPT
HTML-JAVASCRIPT  There are two radio button and one text area. The values should be generated on the text area based on the selection of radio buttons. Hardcoding is also allowed
Advertisements
HTML-JAVASCRIPT
HTML-JAVASCRIPT  There are two radio buttons. On clicking a radio button, a text area must be created. If a first radio button is clicked, a text area is created. When the second button is clickHTed, a new text area must
javascript comment syntax html
javascript comment syntax html  javascript comment syntax html
HTML Table in javascript
HTML Table in javascript  hi all, how to add last row with sum in table using javascript
JavaScript where to place in HTML
JavaScript where to place in HTML   Where to place JavaScript code into HTML Code?   Placing JavaScript code into HTML Code In HTML.... See the example given below. Declaring JavaScript in HTML Head Tag <
On HTML and JavaScript - Java Beginners
On HTML and JavaScript  Hi I have a SelectBox for ex i want... slection box using in javaScript Select Date and month using JavaScript -Select- 01 02 03 04 05 06 07 08 09 10 11 12 13
php,javascript,html
php,javascript,html  Hi, thank u for answered the previous question. one more question: when i register the student details, unique register number should be created and incresed automatically for every student based
javascript-html - JSP-Servlet
javascript-html  i want to dynamically create textfield with option button as another/remove when user presses in jsp page which will be in table.for example table contains one row with 2 columns,one textfield,second dropdown
javascript-html - JSP-Servlet
javascript-html  i want to dynamically create textfield with option button as another/remove when user presses in jsp page which will be in table.for example table contains one row with 2 columns,one textfield,second dropdown
JavaScript XML to HTML
JavaScript XML to HTML    ... to display the XML data into HTML table. As you have already learned how... the DOM reference to display the data of XML document into html table. For this, we
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 have a table being displayed using the tag and cells in it contain links(huge amount of data is displayed in paged manner). 2.When click on a link, it leads
Hide show HTML forms using javascript
Hide show HTML forms using javascript  How to hide a HTML form in my application using JavaScript?   HTML Code to create checkbox <...;div id="yourDiv"> ...other forms... </div> JavaScript function to hide
flowcharts using javascript/HTML - Development process
flowcharts using javascript/HTML  Hi I want to create flowchart diagram using html/javascript.. is that possible.. please guide me Thanks!  Check this linkhttp://www.roseindia.net/jdbc/jdbc-driver-and-its-types.shtml
how to print HTML using javascript or Jquery
how to print HTML using javascript or Jquery  is there any way to print a document(created using Html and javascript) without using window.print, which works for all the browser specially chrome and firefox, I have used
Html form using JavaScript to display the table content
Html form using JavaScript to display the table content  HI There, Greetings, I am new to this java and I need your assistance. I have created... want to write a Html JavaScript coding to display the content from database
write a javascript progam to implement functions in html
write a javascript progam to implement functions in html  write a javascript progam to implement functions in html  Please visit the following link: http://www.roseindia.net/javascript/emailvalidation.shtml http
How to change HTML button onclick to autoclick - javascript function
How to change HTML button onclick to autoclick - javascript function  Can any one give me a block of code to change the HTML button onclick to autoclick. The method must be in Java Javascript
How to change HTML button onclick to autoclick - javascript function
How to change HTML button onclick to autoclick - javascript function  Can any one give me a block of code to change the HTML button onclick to autoclick. The method must be in Java Javascript
how to validate the telephone number without using jquery in html with javascript
how to validate the telephone number without using jquery in html with javascript  how to validate the telephone number without using jquery in html with javascript
mini project using html,javascript and ms access with source code
mini project using html,javascript and ms access with source code  I want a mini project which uses html and java script and backend as ms access with source code. plz send its important and urgent
How to give value for select in HTML dynamically using javascript
How to give value for select in HTML dynamically using javascript  hi. Consider the situation i am having 2 select options called degree... should be displayed in the dept list. how to do this using javascript
Accessing MS ACCESS databse using a HTML webpage [created using Javascript]
Accessing MS ACCESS databse using a HTML webpage [created using Javascript]  HI team, This is Srinivas, and I have a query and i explained here... I have to save some datas in an MS ACCESS database file [*.mdb], after
how to pass form values from javascript of html page to jsp page
how to pass form values from javascript of html page to jsp page   This is my sample html page which contains inline javascript which calculates...=ABQIAAAA5yM-fP6TPUheIXxW3TxpVRRgJAR_YXLeqIBw9Qs7Dzlh-4wFexRUVFiN8RbSageQjhAggT3jom" type="text/javascript"><
Calling In JavaScript Functions from HTML Form To Validate User Entered Data
Calling In JavaScript Functions from HTML Form To Validate User Entered... and editing my html to call my functions to validate the user entered data...; <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <
coding for horizontal menubar using using html or javascript - JSP-Servlet
coding for horizontal menubar using using html or javascript  hii friends, i wanted to implement horizontal menubar in my project tht wil open the links to diffrnt pages kindly help
javaScript
javaScript  How to open a browser window that cannot be resized? (HTML + Javascript
How to play FLV video files on Ipad using HTML code or javascript code?
How to play FLV video files on Ipad using HTML code or javascript code?  How to play FLV video files on Ipad using HTML code or javascript code
How to Validate dynamically created text box in HTML using Javascript
How to Validate dynamically created text box in HTML using Javascript  Here is the HTML code to create text boxes dynamically. It works properly in IE but not in fire fox and chrome. how to make this to work in all browsers
Hi how to transfer table data from html page to excel sheet by using javascript .
Hi how to transfer table data from html page to excel sheet by using javascript .  html page to excel sheet by using javascript and i dont want to transfer all rows in table, i want to hide some rows in excel sheet. Please send
Advertisements
 

 

 

DMCA.com