Saving an option in dropdown using html and css

When i select others in dropdown,i need to save it and when i open next time,that option need to appear in dropdown,is it possible?

Could you please explain your question. Is this the case where ‘other’ is oneof the options and if you pick ‘other’ there is a textbox where yiu type what ‘other’ is. And then next time, that option will be added to the dropdown?

If so, yes it is possible but not always practical.

yes,other is one of the option in the dropdown.When i select the other in dropdown,it will display textbox to enter the name.when i opened next time i need that name in the dropbox.Could you please help me with this?If possible can you provide me the HTML or any other code whichever is possible

Well, the first step would be for you to post what code (html and either php or javascript) you already have when you tried to do this. Then we can help you from the point where you got stuck.

<script type="text/javascript">
function showfield(name){
  if(name=='Other')document.getElementById('div1').innerHTML='Other: <input type="text" name="other"  />';
  else document.getElementById('div1').innerHTML='';
<h1 align="center">Test Request </h1><hr>
<form action="action_page" method="post">

		<input type="text" id="Requester"  placeholder="Enter the name" required="true" size="30" /> <br>
<select name="customer" id="customer" onchange="showfield(this.options[this.selectedIndex].value)">
<option selected="selected">Please select ...</option>
<option value="Amazon">Amazon</option>
    <option value="Flipcart">Casio</option>
	<option value="Electronics">Plantronics</option>
	<option value="Internal">Zebra</option>
	<option value="Samsung ">Samsung Artik</option>
    <option value="Other">Other</option>

<div id="div1"></div><br>
<input type="submit" value="Submit" />
<button type="reset" value="Reset">Reset</button>
		<input type="button" name="cancel" value="cancel" onClick="window.location.href='';" />


Also when i tried to save on my desktop the saved data,it is just opening but not saving it.Can you help me on this…Thanks in advance

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.