hi guys, could you help me?
how could i create a dropdown button automatically once a value is inputted in the textbox..

thanks thanks..

First try to google and start coding.. Then any problem occur come here for suggestions..Not for doing your home work..

try this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
</HEAD>
<BODY>
<SCRIPT LANGUAGE="JavaScript">
function add_val()
{
  ival=document.getElementById('ivalue').value;
  test.testselect.options[test.testselect.options.length]=new Option(ival,ival);
  document.getElementById('ivalue').value="";
}
//-->
</SCRIPT>

<form action="" method="post" name="test">
<br>
<select name="testselect">
<option>One</option>
</select><br>
<br>
<input type="text" name="ivalue" id="ivalue" value="">
<br>
<br>
<input type="button" name="submit" value="submit" onClick="add_val();">
<br>
</form>
</BODY>
</HTML>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.