Hello,
I have more or less the same problem. I would like to use the “on_sent_ok” command to redirect to Paypal ONLY IF the drop down menu is set to “paypal” ELSE continue.
The command I use in the “additional options” is:
on_sent_ok: “if (jQuery(‘#Payment’).val()==’Paypal’) {window.open(‘https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=xxxxx’,’_blank’)} else {};”
If I use: alert(“test: “+jQuery(‘#Payment’).val()) I will get the message:
“test undefined”
Which means, there is no value behind “#Payment”. How can I still have a value in “#Payment” at the moment of on_sent_ok?
I am reading for 6 hours and trying to use all the forum options, but they do not work / I am to stupid to get them to work.
Could someone please help me with this issue?
Thanks/Cheers!