|
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 |
smarty1 Smarty n00b
Joined: 25 Feb 2018 Posts: 3
|
Posted: Sun Feb 25, 2018 5:49 am Post subject: dropdown lists |
|
|
Hi.
I have one dropdown in my .tpl file that loads data from a query successfully.
How can I get the selected value from the dropdown and then query a result
based from the first dropdown selected value into a second dropdown list.
Ex. user selects Hostess from first dropdown and as a result the 2nd dropdown list shows all the products associated with Hostess.
Many thanks!!! |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Sun Feb 25, 2018 12:31 pm Post subject: |
|
|
You can do it in JavaScript, like all other people do.
This is outside the reach of Smarty, or even PHP. |
|
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
|