|
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 |
MarkPals98 Smarty n00b
Joined: 21 Jan 2019 Posts: 1
|
Posted: Mon Jan 21, 2019 10:08 am Post subject: Read more button expanding text |
|
|
I have some code that displays some text that has been retrieved from my database. I want a read more button so it displays 50 characters and then expands when you click the 'Read more' button.
This is what i have now:
Code: |
<p>
{$topicss.omschrijving|substr:0:50}
</p>
<button id="myBtn">Read more...</button>
|
Can someone help me? (Ps, I'm new to working with smarty so dont hate me for being a noob pls :p ) |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Mon Jan 21, 2019 11:16 pm Post subject: |
|
|
That's not a Smarty problem.
Try asking around JavaScript forums. |
|
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
|