WordPress.org

Ready to get started?Download WordPress

Forums

Collapse-O-Matic
[resolved] How to keep expanded after clicking submit button? (3 posts)

  1. senyoraangelica
    Member
    Posted 11 months ago #

    Hello! I have a search form with several checkboxes as search options inside [expand][/expand]. See below:

    <form action="" method="get">
    <input type="text" name="search" value="">
    <input type="submit" class="pods-form-filters-submit" value="Search">
    [expand title="Search Options:"]
    <input type="checkbox" name="title" checked="checked">
    	<label for="title">Title</label>
    <input type="checkbox" name="author">
    	<label for="author">Author</label>
    [/expand]</form>

    If the collapse-o-matic is still expanded before clicking the submit button, how do I keep it remain expanded when the page refreshes with the search results?

    Can I reference it using if and else in php? Please help.

    http://wordpress.org/plugins/jquery-collapse-o-matic/

  2. Baden
    Member
    Plugin Author

    Posted 11 months ago #

    There is a solution for this problem using cookies. It it a feature that is built into Collapse-Pro-Matic. You can check out more on the cookie feature here: http://plugins.twinpictures.de/premium-plugins/collapse-pro-matic/documentation/#cookie

  3. senyoraangelica
    Member
    Posted 11 months ago #

    Awesome! Thanks!

Reply

You must log in to post.

About this Plugin

About this Topic