|
|
|
|
|
by asciihacker
3508 days ago
|
|
<!-- 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. |
|