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

nested selected tag ihave display selected item

Ads
 

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.

Ads









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
. 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
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
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
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
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
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
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
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
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

Ads