Java Script Help

Status
Not open for further replies.

daryllsheridan

New Member
Looking for a quick bit of java script, have searched the internet but cant find anything that will do the job

Home Page

Its a page for making books available for sale (college project so no major concern) When a seller picks a price for a book they have to donate a minimum of 10% of the price to charity, so im looking to use the contrib % to automatically set the amount they donate to charity. For eg if a buyer picks a price of 50 euro and then chooses 10% from the drop down box, then the amount box would automatically fill with 5 euro

Reckon Javascript would do the job but havent a clue how to do it

Regards
Daryll​
 

louie

New Member
you could do that with php or asp as well.
Have the select menu set using javascript to submit to the same page, set session and calculate the total again adding the new value.

<SELECT NAME="donate_amount" onchange="form_name_or_id.submit()">
 
Status
Not open for further replies.
Top