|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
dextranovich Smarty n00b
Joined: 19 May 2018 Posts: 3
|
Posted: Sun May 20, 2018 11:14 am Post subject: Assign Smarty variable from Javascript variable |
|
|
Hello everyone,
I have the following code in my template file:
Code: | <input type="radio" name="AcceptTerms" id="AcceptTerms" value="Ja/Nein" />Ja/Nein
[{oxscript add="$('#AcceptTerms').change( function() { var radioButton = 'Ja';
console.log(radioButton);
});"}] |
Now, in console when the radio button is clicked, I have 'Ja' printed, but I want to pass it's value into smarty variable because I will send it as a parameter in php function.
Is this possible and how I can do that?
Thank you |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|