--- layout: default nav: attributes > ic-get-from ---
ic-get-from - The Post-To AttributeThe ic-get-from attribute binds the default action (see below) of HTML element to a
GET to the given URL. For example, on a button, when the button is clicked, an
AJAX GET will be issued to the given URL.
The value of the attribute should be a valid relative path (e.g. ic-get-from="/foo/bar").
ic-get-from implies a dependency on its path, and Intercooler will issue requests for elements
whenever it detects an action that the path depends on. See Dependencies for
more information.
Here is a simple example, with a span that depends on the updated URL:
<button ic-get-from="/target_url" ic-target="#target-span">
Click Me!
</button>
<span id="target-span">
You haven't clicked yet...
</span>