Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » JS - Writing value of select box without refreshing
Closed Thread
Old 03-27-2005, 09:33 AM   #1 (permalink)
NX5
 
Newb Techie

Join Date: Sep 2004

Posts: 20

NX5

Default JS - Writing value of select box without refreshing

Hi

I'm trying to make an order form. Its going great apart from this. When the person selects the amount of products he wants to buy, I want to display the price without refreshing the page.
The code I have at the moment does the job of getting the value from the select box, but goes to another page and displays the value when I want it in the same page.
I have an onChange value on the select box calling the function below.
The form is called reserve and the select box is called amount.

<script language="javascript">
function Display() {
var no = document.reserve.amount.value
document.write(no)
}
</script>

Can someone please tell me how to make this work properly?!
NX5 is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On