Share on Google+Share on Google+

Sulakshana
Input type select
1 Answer(s)      5 years ago
Posted in : HTML

This block of code shows 4 countries even when the size of the SELECT element specified is 2. Why is it so?

Select a Country:

<select name="country" size="2">

<option name="Australia" value="Australia" selected="selected">Australia</option>
<option name="Belgium" value="Belgium">Belgium</option>
<option name="Germany" value="Germany">Germany</option>
<option name="India" value="India" >India</option>
<option name="UK" value="UK">UK</option>
<option name="USA" value="USA">USA</option>

Ads

View Answers

April 3, 2012 at 5:15 PM


The size attribute defines the number of visible options in a drop-down list.You have specified 2 as size. So it makes two countries visible at a time in dropdown. If you make size 3, it will show 3 countries at a time.










Related Tutorials/Questions & Answers:
Input type select
Input type select  This block of code shows 4 countries even when the size of the SELECT element specified is 2. Why is it so? Select a Country: <select name="country" size="2"> <option name="Australia" value
different type input in java
different type input in java  hiiiii... get input different different type like as DataInputStream,Scanner i want to get source code of these all type of input method. thank   Java Read through DataInputStream: import
Advertisements
HTML5 input attribute, Define the type, alt and image  of input tag.
HTML5 input attribute, Define the type, alt and image  of input tag. Introduction:Here we will introduce you to about the type attribute of input tag... only given type of data. It is most important for input tag. The alt 
How to get the full path location using <input type=file>
How to get the full path location using input type=file  Hi. I have used input type=file> in HTML to select an image. But it selects only the image but not with its full path location. how to do it? Thanks in advance
Select Tag (Form Tag) Example
is a UI tag that is used to render an HTML input tag of type select. Add...;s:select> that creates an HTML input tag of type select. This tag contains...Select Tag (Form Tag) Example      
how to enable and disable a input type in jsp - JSP-Servlet
how to enable and disable a input type in jsp  how to disable the input type and enable based on some input in the input type   Hi Friend, Try the following code: function function1(){ var n
How to read the contents in a file which is of input type file
How to read the contents in a file which is of input type file  I...-data" ACTION="upload"> File to upload: <INPUT TYPE=FILE NAME="upfile"><BR> <INPUT TYPE=SUBMIT VALUE="Submit"> upload.java
input type checkbox HTML5,  input type radio HTML5.
input type checkbox HTML5,  input type radio HTML5. Introduction:In this tutorial, you will the use of  checkbox and radio type input field. If type is checkbox then user can select multiple checkbox. If type is radio
input
input  a java program that will exchange the last names of two students that were input by a user
input type dialog box take text and search a list and focus that text - JSP-Servlet
input type dialog box take text and search a list and focus that text  i have a button..when i press it will prompt a dialog box with a text box... then it will search a list which contains data in the same page and if found
jQuery 'select' form event
; <input type="text" value="Select something" /> <input type="text" value="Select some text" />... input box. In this Example, two input text box are given , when we select
Column select
;td>Name</td><td><input type="text" name="name" value="<...;Address</td><td><input type="text" name="address" value="<...;/td><td><input type="text" name="contact" value="<%=rs.getInt
input box
input box  give me the code of input box in core java
input box
input box  give me the code of input box in core java
Select from select list + display
;/td><td><input type="text" id="name" ></td></tr> <tr><td ><b>DEPT Name:</b></td><td><input type...Select from select list + display  i have a select list containing
input output
Input And Output       Introduction The Java I/O means Java Input/Output and is a part... character input stream and buffering characters. It also reads
Array and input
to input one of the above numbers then i want to print the array without the number user input. how will i do tht
keyboard input
keyboard input  how do I use JOptionPane to accept keyboard input? I know how to import but not specific command on input line   import javax.swing.*; class JOPtionPaneExample { public static void main(String
input output
input output  java program using fileinputstream and fileoutputstream   Hi Friend, Try the following code: import java.io.*; class FileInputStreamAndFileOutputStream { public static void main(String[] args
input output
input output  java program using fileinputstream and fileoutputstream   Hi Friend, Try the following code: import java.io.*; class FileInputStreamAndFileOutputStream { public static void main(String[] args
SET and SELECT
SET and SELECT  hello, What is difference between SET & SELECT in sql????   hii, SET : The set statement is used to the update query. SELECT : The select statement is used to display the all data's in the table
store input and display previous input as well current input. in jsp
store input and display previous input as well current input. in jsp  Hi Friend, In this JSP program i want display the previous input as well current inputs also. currently only current input i am able to display whenever i
select query
select query  how to retrieve a single image from mysql table using $row[] value
select query
select query  how to write select query with where clause having multiple variables. example: i want to select the data from DB in which i want to check againest two variable in where cluase. String sql = "select * from
dynamic select box
; <input type="hidden" value="Leads" name="moduleName" /> <table>...;/label></td> <td><input type="text" name="lastname" value...;First Name</label></td> <td><input type="text" name
how I do select from select in hql
how I do select from select in hql  select RN from ( select rownum RN, dbid from ( select * from profile p where type = 1912 and name like... doesn't work select RN from ( select rownum RN, DBId from ( select distinct p
Input in Stateless Bean - EJB
Input in Stateless Bean  Hello, I am having problem in taking the input in stateless bean, when I am trying to get integer or double type input from the user in the client file, It shows me the error
type casting
List (object type) <Object> totalList(int pi){ try{ Query q= em.createQuery("select p,c,b from Book b ,Customer c , Purchage p where c.uid...type casting  <--bean class-->method calllist is of object type
Radio Buttons in HTML
;  The Radio Button in HTML are type of input form, which allows...=""> I have a bicycle: <input type="...; I have a bike: <input type="radio" name="vehicle"
Multiple select box
Multiple select box  Hi, I need help in code for multiple select box. The multiple select box should be populated with the db values.The selection done in the multiple select box is to be moved to the text area provided a add
render in input typetext
render in input typetext  Hi. I can not set the value in the input type text tag when I link to other page.The input type text appear with empty value. thanks in advance MBEAN @ManagedBean @SessionScoped public class
Tutorials   
Java Spring Hibernate Struts Training How to display button as a link in vaadin? hi change navbar dropdown color in bootstrap How to remove the background color of bootstrap menu bar? How to change color of opened Bootstrap drop down toggle? Setting bootstrap container background color Help school all activities and admision process.. add one row after another date make a webpage HTMl HTMl Source code how to apply globalisation to a world wide asp.net application how to print HTML using javascript or Jquery How to recover from google panda update? How to survive google panda 4.0 update How to find if you have been hit by Panda 4.0 Design a web page using XHTML and JavaScript that does the followings: ffmpeg converting file mp4 to mov JavaScript How to Disable Catch-all Emails on CPanel z-index always on top What is Web hosting Database and HTML web development trainee Uploading files Image Gallery Image Gallery dropdown How to redirect from a HTML page? Easiest method for expiring the css and js headers HTML WITH AJAX VB 6 Read Web Page Header string palindrom using vbscript? html button How to add mod_deflate to apache without recompiling How to use place hoder in IE(version : 8) Html Software Question div align left css Fetching data from excel file on other website and display in interactive graph form where do I find the fix for tree view catalog not expanding and collapsing correctly for roseindia shopping cart 1.1 pass to next page to enter into a particular page only if the username,password and listbox value mtches hi Cricket stadium ticket booking design Need some help creating an order form. HTML div tag HTML div tag

Ads

 
Advertisement null

Ads