jojo
08-02-2002, 08:51 PM
Hi,
Here is my current bit of javascript;
<script>
function jsin(element) {
document.theform.page.value = document.theform.page.value + "\n element "; }
</script>
<form name="theform" action="file.htm" method=POST>
Click to insert:
<input type="button" value="Name"
onClick="jsin(Name);">
<input type="button" value="Age"
onClick="jsin(Age);">
....
...
</form>
That provides the user with boxes, and when they click on the box, the appropriate field gets put into the form.
My question is..
Instead of using boxes, how can I make a drop down menu that when the user clicks onto the appropriate field, it'll add it to the form?
Basically, I want to change the buttons for a drop down menu.
Can anyone please help me out here?
TX!!!
Here is my current bit of javascript;
<script>
function jsin(element) {
document.theform.page.value = document.theform.page.value + "\n element "; }
</script>
<form name="theform" action="file.htm" method=POST>
Click to insert:
<input type="button" value="Name"
onClick="jsin(Name);">
<input type="button" value="Age"
onClick="jsin(Age);">
....
...
</form>
That provides the user with boxes, and when they click on the box, the appropriate field gets put into the form.
My question is..
Instead of using boxes, how can I make a drop down menu that when the user clicks onto the appropriate field, it'll add it to the form?
Basically, I want to change the buttons for a drop down menu.
Can anyone please help me out here?
TX!!!