How can I show array and button by click?
<p>I have a simple table with buttons: <code>&lt;button class='btn btn-info' href='#'&gt;More&lt;/button&gt;</code>, and I need that when user click by "More" button then array ($records, for example) and "Less" button will be shown under "More" button. For example, <code>$records[0]="1", $records[1]="2"</code>. Please, I don't know JavaScript and JQuery very well, but I need to do it using Ajax. So, I very need your help. Thank you.    </p>

<p><strong>UPDATE:</strong></p>

<pre><code>$("button.btn-info").click(function() {
    alert('click');
});
</code></pre>

<p>It's code for clicking by "More button", but I don't know how to write $records array under this button with "Less" button (which will hide the array by click) at the end. </p>
