That's your code
$.ajax({
url: "{% url candidate_notes %}",
success: function(data){
$('#notesColumn').html('data');
}
})
I'm pretty sure you want to replace the content of notesColumn with
the value of data and not the string data.
I would also use t
And what error are you getting?
The only weird thing I see at first is
url: "{% url candidate_notes %}",
If your JS file is a standalone file served as a static file then you
have no "url" tag available inside it.
On 3/17/17, Shezan Kazi wrote:
> hi all,
>
> i am trying to reload a div that is
hi all,
i am trying to reload a div that is in an {% include %} tag when a form is
submitted. This is what i have so far:
the page i am viewing:
{% crispy note_form %}
{% include 'item/item_notes.html' %}
the included template:
{% for note in object.itemnote_set.all reversed %}
{
3 matches
Mail list logo