Note that there are some explanatory texts on larger screens.

plurals
  1. POslideToggle table row using Jquery
    text
    copied!<p>I have been trying for over a week now to slideToggle a table row when the 'more info' button is clicked but nothing seems to be working at all.</p> <p>I'm new to Jquery so if anyone ca help me slideToggle the 'more-info-1', 'more-info-2', 'more-info-3' tr tags. the main problem is that those id's are created dynamically through php and I don't understand how to select them in Jquery - like using 'more-info-' or something.</p> <p>I would like it to work like this example: <a href="http://erikandcolleen.com/erik/projects/jquery/content_table/content_table.html" rel="nofollow noreferrer">Here</a> minus the iframes of course.</p> <p>The user will click the 'more info' button and then the 'more-info-' tr will slide down.</p> <p>Here is the page source: (I don't know how to insert HTML properly on Stack OverFlow, is there a special way of doing it - the code button does not work properly with HTML)</p> <pre><code> html div id="output-listings" div class="main-info" table class="listings" tbody tr id="more-info-1" class="mi-1" td div id="more-1" class="more-information"/div /td /tr tr id="main-info-1" tdLeftlane News/td tdwww.leftlanenews.com//td tda id="link-1" class="more-info-link" href="#"More info/a/td /tr tr id="more-info-2" class="mi-2" td div id="more-2" class="more-information"/div /td /tr tr id="main-info-2" tdMotor Authority/td tdwww.motorauthority.com/ /td tda id="link-2" class="more-info-link" href="#"More info/a/td /tr tr id="more-info-3" class="mi-3" td div id="more-3" class="more-information"/div /td /tr tr id="main-info-3" tdAutoblog/td tdhttp://www.autoblog.com//td tda id="link-3" class="more-info-link" href="#"More info/a/td /tr /tbody /table /div /div!--end output-listings-- /html </code></pre> <p>I would greatly appreciate the help.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload