From what I read in the docs, to update a partial after a form submission via AJAX, you use the data-request-update API attribute, and you just have to use, i.e., "msgs: '#msgs'" so that it will update the #msgs element with the contents of the msgs partial...but it's not.
<div id="msgs">
{% partial 'msgs' %}
</div>
<div id="form-box">
<form data-request="onSend" data-request-error="alert(jqXHR.responseText);" data-request-update="msgs: '#msgs'">
<span>
<input type="text" name="uname" id="username" autocomplete="off" placeholder="Username" required>
<input type="text" name="msg" autocomplete="off" placeholder="Write message" required>
<button type="submit" id="sendBtn">Send</button>
</span>
</form>
</div>
What am I missing?
Last updated