option value="0">-select- option value="1">INDIA option value="2">UK" name="description">

nested selected tag ihave display selected item

nested selected tag ihave display selected item

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

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
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
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
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
. 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
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
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 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
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
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... first page ,it will stored in XML file and at same time ,it should display second page containing second listlox , also in the second page ,it should display
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 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
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 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
<html:option > with "selected" attribute - Struts
with "selected" attribute  how to display formbean object with "selected" attribute in . please help me
textfield selected text
textfield selected text  How to select text in text field
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
ModuleNotFoundError: No module named 'selected-area'
ModuleNotFoundError: No module named 'selected-area'  Hi, My... 'selected-area' How to remove the ModuleNotFoundError: No module named 'selected-area' error? Thanks   Hi, In your python
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
explains you that how to display the date and the selected option text in Javascript... and selected option value using id in html form and display these value in Javscript...Javascript get Date And Selected Option Text In this tutorial we will learn
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
Problem to display checkbox item
checkboxes.ADS_TO_REPLACE_5 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
ModuleNotFoundError: No module named 'jupyter_highlight_selected_word'
ModuleNotFoundError: No module named 'jupyter_highlight_selected_word' ...: ModuleNotFoundError: No module named 'jupyter_highlight_selected_word' How to remove the ModuleNotFoundError: No module named 'jupyter_highlight_selected_word' error
ModuleNotFoundError: No module named 'django-custom_delete_selected'
ModuleNotFoundError: No module named 'django-custom_delete_selected'  ...: No module named 'django-custom_delete_selected' How to remove the ModuleNotFoundError: No module named 'django-custom_delete_selected' error
ModuleNotFoundError: No module named 'jupyter_highlight_selected_word'
ModuleNotFoundError: No module named 'jupyter_highlight_selected_word' ...: ModuleNotFoundError: No module named 'jupyter_highlight_selected_word' How to remove the ModuleNotFoundError: No module named 'jupyter_highlight_selected_word' error
how to by default chceckbox button is selected in struts
how to by default chceckbox button is selected in struts   i want to by default checkbox is selected please help me.. my is follwing <%@taglib... i want to all rows are by default selected
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
how to get selected name from combo box
how to get selected name from combo box   i have fetched all records... of worker name within d combo box and display that id into a text box. plz answer me this q. urgently. With Regards, Vishwnath
how to get selected name from combo box
how to get selected name from combo box   i have fetched all records... of worker name within d combo box and display that id into a text box. plz answer me this q. urgently. With Regards, Vishwnath
how to get selected name from combo box
how to get selected name from combo box  i have fetched all records... of worker name within d combo box and display that id into a text box. plz answer me this q. urgently. With Regards, Vishwnath
how to get selected name from combo box
how to get selected name from combo box  i have fetched all records... of worker name within d combo box and display that id into a text box. plz answer me this q. urgently. With Regards, Vishwnath
how to get selected name from combo box
how to get selected name from combo box  i have fetched all records... of worker name within d combo box and display that id into a text box. plz answer me this q. urgently. With Regards, Vishwnath
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
code for selected checkbox columns data from database
code for selected checkbox columns data from database  in my page iam getting all column names of a particular table with checkboxes. when iam select one or more checkboxes i have to get data of that selected columns only. what
Inserting values into a database table of selected DropDown in jsp.
Inserting values into a database table of selected DropDown in jsp.  ... to insert all selected values in data base correspondent to each like if user selected india and then goa. I want to insert it to a table which has two fields
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
Display Tag
Display Tag  Hi Here is My code, There is problem At line no.3, where i want to display two fields in one column but it gives error.. Please any one knows the solution must reply Thanks In Advance
Display Tag
Display Tag  Hi Here is My code, There is problem At line no.3, where i want to display two fields in one column but it gives error.. Please any one knows the solution must reply Thanks In Advance
update the selected records from view immediatly
update the selected records from view immediatly  Hi I am extracting data form sql view to Excel(2007). I want update the Flag field (CHAR 1)in one Table as soon as i get the data form the view to excel. Is there any way I can
how can i print the selected content of a frame
how can i print the selected content of a frame  hello sir, I am designing a bill calculate program. I want to print the bill in crystal form. I want to skip all the text fields shapes and all the button from the frame.. but all
nested select tag
nested select tag  My requirement is as follows suppose combobox to select country whenever i select a country it will show corresponding states in another combo box.   JSP Code 1)country.jsp: <%@page import
How to display nested ArrayList in JSF
How to display nested ArrayList in JSF  I have a class... to display it in jsf but i dont know how and i am getting mad. I have nested..._TO_REPLACE_2 I want to display it in jsf but i dont know how and i am getting mad. I have

Ads