News for hackers. Stuff that matters.
Re:Intercooler.js – Making AJAX as easy as anchor tags by asciihacker on Monday November 07, 2016 @11:19AM (#12892203)

    <!-- When this button is clicked an AJAX POST request is sent to /example and the 
         response content is swapped in to the body of the button -->
    <button ic-post-to="/example">
        Click Me!
    </button>

But what if I want the response to populate the content of another HTML element? E.g. if I wanted an accordion-style FAQ where when you click on the question (or on a plus-sign before the question), the div below the question is loaded with the answer from the server via AJAX.
Re:Intercooler.js – Making AJAX as easy as anchor tags by kingosticks on Monday November 07, 2016 @12:25PM (#12892836)