I have to develop a faq section, where users search for contents. When one searches for contents, it brings back some results and wanted to show and hide certain div.
When you enter a search term "man" this should bring you back with two results.
each results have the following structure.
<h5 class="plus" id="h5code">title of the faq</h5>
I have written code for executing while some one clicks on h5.
$('#results h5 minus').next().show();
$('#results h5 plus').next().hide();
Not sure why its not getting into the function.
So question is can you guys help me in 2 things.
1. Why is my function not executed?
2. How can i show and hide the following div, which will have the description of the faq?