ic-prompt - The Prompt Attribute


The ic-prompt attribute tells Intercooler to prompt the user for input before issuing an AJAX request. The input is included in the ic-prompt-value parameter of the request. If you wish to change this, you can use the ic-prompt-name attribute to override it.

If the user cancels the prompt, no request will be made.


The value of the ic-prompt attribute should be a string prompting the user for input.

This attribute may be placed on parent elements, allowing you to specify behavior across multiple elements.


The ic-prompt attribute has no effect on dependencies.


  <button ic-post-to="/target_url" ic-prompt="What's your name?">Click Me!</button>