option value="0">-select- option value="1">INDIA option value="2">UK" name="description">
Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa HTML nested selected tag ihave display selected item
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


krishnachaitanya
nested selected tag ihave display selected item
1 Answer(s)      3 years ago
Posted in : HTML


i have two combo boxes combo1 combo1 in first combo box i taken as follows select name="combo1"> option value="0">-select- option value="1">INDIA option value="2">UK etc in other combo box display all states relate first combo box, ok it can be done by creating array

my problem is when i display data like this $_POST["combo1"] it will show vlaue . suppose i select INDIA it shows "1" , but i want "INDIA", and i use if condition for each value and display by using "echo" but it difficult check all combinations for each country with corresponding states is it any shortcut method in php like in javscript seletedIndex.

thanks


Advertisement
View Answers

October 20, 2011 at 12:46 PM


Change the option values of select box to India,USA like that.



Related Tutorials/Questions & Answers:
nested selected tag ihave display selected item
nested selected tag ihave display selected item   i have two combo...="2">UK etc in other combo box display all states relate first combo box, ok it can be done by creating array my problem is when i display data like
how to insert the selected item of combobox in mysql - XML
how to insert the selected item of combobox in mysql  hi, i have to insert the selected item from combobox into MYSQL database.pls provide... database.but after storing it has to display the alert box .like data has stored
Advertisements
I want to display the quantity of the selected item of a drop down list in a textbox. The data is stored in database.
I want to display the quantity of the selected item of a drop down list in a textbox. The data is stored in database.  The code for retrieving data from database into Drop Down List. <% DataSource data = new
selected radiobutton to display different page
selected radiobutton to display different page  there are three radio button are there , in that selected button to display different page. when submit it, using struts2 framework . plz help me to how write code
. Display JavaScript dropdown selected value
. Display JavaScript dropdown selected value  How to get the selected...("dropdown").value; alert("You selected : " + dropdownValue); } <...;/html> Description: Create dropdown list by using select and option tag. Now when
How to search the selected item in row table using radia button in JSP?
How to search the selected item in row table using radia button in JSP?  How to search the selected item in row table using radia button in JSP
pbml in inserting selected item from combobox into mysql - XML
pbml in inserting selected item from combobox into mysql  hi, i have to insert the selected item from combobox into MYSQL database.pls provide... after storing it has to display the alert box .like data has stored
navigation between panels when item is selected from jcombobox - Swing AWT
navigation between panels when item is selected from jcombobox  hi...(2nd panel).the combo box is in main panel. when a item is selected from combobox the 2nd panel should navigate to other panel. for now i have 4 item in the combo
how to display selected checkboxes dynamically using jsp
how to display selected checkboxes dynamically using jsp  Hi friends i have a requirement that : in my JSP page i have radio buttons...) is available in DB,the respective radio button should be selected automatically
How to save JCombobox Selected Item in to Access Database - Java Beginners
How to save JCombobox Selected Item in to Access Database  How to save JCombobox Selected Item in to Access Database  Hi Friend, Try the following code: import java.sql.*; import javax.swing.*; import
How to store JComboBox selected Item into Ms Access Database - Java Beginners
How to store JComboBox selected Item into Ms Access Database  How to store JComboBox selected Item into Ms Access Database.  Hi Friend, Try the following code: import java.sql.*; import javax.swing.*; import
Java JComboBox Get Selected Item Value
Java JComboBox Get Selected Item Value In this section we will discuss about how to get the selected item value form JComboBox. javax.swing.JComboBox.... In this tutorial we are discussing about how to store the selected item value
Dynamically display values in dropdown box and then show the selected values as selected by the user which is already stored in the DB
Dynamically display values in dropdown box and then show the selected values as selected by the user which is already stored in the DB   Hello... trying to display multiple selection selected from the list of all the values
Dynamically display values in dropdown box and then show the selected values as selected by the user which is already stored in the DB
Dynamically display values in dropdown box and then show the selected values as selected by the user which is already stored in the DB  The below... this code it is adding one more value to the dropdown box and showing as selected
print selected checkbox names in array without form tag
print selected checkbox names in array without form tag  Hi everyone...;% %> [/code] so, i want to display all seleced checked checkbox names, when i click on button but without using FORM tag
Display JSP selected listbox and checkbox in xml-please help me
Display JSP selected listbox and checkbox in xml-please help me  Hi... second listlox , also in the second page ,it should display selected listbox... database. and in final page it should display all selected listbox as well
How to Display an alert message when nothing is selected in jspinner in java?
How to Display an alert message when nothing is selected in jspinner in java?  Hello, i'm trying to code a jspinner in java and i want to display a message when nothing is selected. My initial value is 0 min value = 0 max value
I am not able to display the selected value of my combobox
I am not able to display the selected value of my combobox   <?php echo "<select name=\"hello\">\n"; echo "<option value=\"NULL\">...['unitcode']; echo "The number you selected was: '$number'"; ?>
How to obtain the selected data item from a list box when listbox contains objects wrapped under Arraylist?
How to obtain the selected data item from a list box when listbox contains objects wrapped under Arraylist?  I have a jsp page containing a list box... want to copy the selected item(one at a time) from the list box to the text box. I
how to display the selected row from the data table in model panel ??
how to display the selected row from the data table in model panel ??  the below displayed is my datatable:tableDatas.xhtml <rich...(rec3); } public ArrayList <TableData> selected() { Iterator<
how to display textbox value based on selected option value?
how to display textbox value based on selected option value?  Hi,I have some problem. I use jsp and ajax. first select: 1 second select:2 based on first value I finished above code. ID: xx Name:xx xx is baesd on second
textfield selected text
textfield selected text  How to select text in text field
<html:option > with "selected" attribute - Struts
with "selected" attribute  how to display formbean object with "selected" attribute in . please help me
ordering the data on a selected key
ordering the data on a selected key  I am willing to present the data in a particular event order
uitableviewcell selected color
uitableviewcell selected color  HI, How to add uitableviewcell selected color? Thanks   Hi, Here is the code: UIView *viewSelected = [[[UIView alloc] init] autorelease]; viewSelected.backgroundColor = [UIColor
show selected date range in calender
show selected date range in calender  helo, i'm working in a project in jsp. suppose thier are 2 textbox 1.start date 2. end date whatever date selected in these textbox get highlighted in the calendar, please help
Javascript get Date And Selected Option Text
to get the selected option text and displayed in Javascript. This tutorial explains you that how to display the date and the selected option text in Javascript...Javascript get Date And Selected Option Text In this tutorial we will learn
Problem to display checkbox item
it contains same checkboxes. So, from your above code, i can display selected... format, it does not display previous page's selected checkboxes. So, i want... include next page's selected checkbox in display list on same pages respectively.( i
how to get the image of a selected JRadioButton to another panel?
how to get the image of a selected JRadioButton to another panel?  how to get the image of a selected JRadioButton to another panel
Change the color of the selected tab
Change the color of the selected tab Swing provides different methods to give..., you will learn how to change the color of the selected tab. For this, we have...;TabbedPane.selected", Color.blue) sets the color of the selected tab. When the user
Backup selected records into txt file
Backup selected records into txt file       Backup selected records into txt file is used to copies the selected records or rows from a table into text file. Further, the text file
 

 

 

DMCA.com