I have a link which deletes a record and I'm using Ajax & POST method. But PJAX "converted" it to GET method. Is there any way to tell PJAX in the API to exclude elements?
This is the simple code.
<a href="...">delete</a><!-- This link trigged by POST method AJAX -->
<div class="card-body">
<div id="pjax-container">
...content
</div>
</div>
new Pjax({
areas: [
'.card-body',
'#pjax-container'
]
});
I have a link which deletes a record and I'm using Ajax & POST method. But PJAX "converted" it to GET method. Is there any way to tell PJAX in the API to exclude elements?
This is the simple code.