Creating a toggle for my pricing table
-
I have a pricing table (shortcode) and I want to be able to click on a button to switch from month to year. Is there some sort of toggle plugin? I do not want an accordion or hide+reveal plugin. Perhaps an ajax where I can change the content of the page without refreshing?
The blog I need help with is: (visible only to logged in users)
-
Hi
What do you mean by having a shortcode for pricing table?
In WordPress.com is not possible to add php code or ajax, so that’s not an option.
I guess you can accomplish this with the details tag:
http://www.w3.org/wiki/HTML/Elements/details
http://www.w3schools.com/tags/tag_details.asp
http://en.support.wordpress.com/editors/#text-editorFor example:
<details> <summary>Text you see before expansion.</summary> <p>Text you see after expansion.</p> </details>Keep in mind, this is a relatively new HTML5 element, and may not work as expected in certain browsers, e.g., Internet Explorer, Firefox.
You can also check this other topic that discussed something similar
Let us know if you have any more questions :-)
- The topic ‘Creating a toggle for my pricing table’ is closed to new replies.