Sets ajax endpoint from contents of a selector.
The specified selector (input, div, etc) should contain a relative, absolute or full URL that points to the remote file that will be requested.
In special cases, this is sometimes useful to externalize endpoint, to use the same form with a different endpoint for example.
This form looks like this:
<span id="test">./endpoint-container-span-handler.php</span> <br/><br/> <input type="button" value="Click me" class="btn domajax click" data-endpoint-container="#test" data-output="#output" /> <div id="output"></div>
This form looks like this:
<div id="test">./endpoint-container-div-handler.php</div> <br/> <input type="button" value="Click me" class="btn domajax click" data-endpoint-container="#test" data-output="#output" /> <div id="output"></div>
This form looks like this:
<input type="text" readonly id="test" value="./endpoint-container-input-handler.php"/> <br/> <input type="button" value="Click me" class="btn domajax click" data-endpoint-container="#test" data-output="#output" /> <div id="output"></div>
This form looks like this:
<textarea id="test">./endpoint-container-textarea-handler.php</textarea> <br/> <input type="button" value="Click me" class="btn domajax click" data-endpoint-container="#test" data-output="#output" /> <div id="output"></div>
All the documentation at a glance