hi
I have the following scenario..
i have a select box containing a list of times. on selecting one of them i am dispalying all the details pertaining to that selection. the list is prone to additions and hence might grow longer. So i would like the user to key in the values directly. So i have a text box and a button next to it on clicking which a dropdown appears. The user can directly enter the value in the text box or select one from the select box.I m setting the value of the text box to the value selected from the drop down in the latter case. In either cases, the value in the text box is taken for processing the request.
- <html>
-
<head><title>xyz</title>
-
<script>
-
-
function toggle(me){
-
if (me.style.visibility=="hidden"){
-
me.style.visibility="visible";
-
}
-
else {
-
me.style.visibility="hidden";
-
}
-
}
-
-
-
</script>
-
</head>
-
<body onload="javascript:document.fsd.search.style.visibility = 'hidden'">
-
<br><br><br><br>
-
<form name="fsd" method="post" action="xyz.asp" >
-
Enter RFC <input type="text" name="rfcname"> <input type="button" title="Click to select a RFC" value="+" onclick="toggle(document.fsd.search)"> <input type="submit" value="Search">
-
<br>
-
-
<select name="search" style="width:140px;" onchange="javascript:document.fsd.rfcname.value = document.fsd.search.options[document.fsd.search.selectedIndex].value;document.fsd.search.style.visibility='hidden'">
what i would like to have is to make the list expand and contract on clicking the '+' button or someother work around to have the user enter the value or select from the dropdown.
thanks,
ramya