Ask Experts Questions for FREE Help !
Ask
    DrJ's Avatar
    DrJ Posts: 1,328, Reputation: 339
    Ultra Member
     
    #1

    Dec 12, 2011, 12:23 PM
    Onclick JS script to update code based on field input?
    Is there a way to write a JS code that will create an input field and a button. When the button is pressed, it will check the input field and if the correct code is entered into the field, it will update a snippet of code further down?

    Basically, I have a hosted paypal button set at one price and a second hosted paypal button at a reduced price. I want to offer a promo code so if the user enters the correct promo code and clicks to activate the promo, it will update the id in the code for the paypal button to go the reduced price item instead without reloading the page.

    Any ideas?

Check out some similar questions!

Seminar topics based on computer field [ 4 Answers ]

Just a quick question.

Input code [ 1 Answers ]

Please I have the radio code of my Honda Accord 2003 2 door but I don`t know how input the code, can somebody help me out??

Calling Java Script Function in C# code [ 1 Answers ]

How to call a java script function in c# code.


View more questions Search
 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.