Question : Add value to hidden field

I have a form where the visitor can select between 4 levels of product and I need to pass their choice to a hidden field on the form so it can be passed to our marketing automation system.
The form has 4 "Buy Now" buttons each linked to highlight that column and open the form using javascript so each is already labeled in the onclick action as: choiceA, choiceB, choiceC or choiceD.

You can see the form at: http://www.elevatemarketaccesstool.com/en/products/finance.asp

Thanks,
Andrew

Answer : Add value to hidden field

you already have a function named activateThisColum() which is accepting 'choiceA', 'choiceB', 'choiceC', or 'choiceD'

So you just need to add the one line to that function to set the hidden field value:
$("#hidden_field").val(myvalue);

-Change #hidden_field to your field id (Keep the # as that means use the Id to match on hidden field id).
-Then change myvalue to match the variable parameter of your activateThisColumn() function.
Random Solutions  
 
programming4us programming4us