As shown in many articles all over the internet, just lose all the value
:
function sendDelete(id){
form = document.getElementById('social_form');
form.id = id;
form.action = '/users/{{ Auth::user()->username }}/social/delete';
form.method = 'DELETE';
alert(form.action);
//form.submit();
}
Thank you so much, sisou! Clearly, I was making a simple javascript mistake. Nonetheless, I appreciate your help!
I ended up removing the .value for the action. The other .values were needed as I was setting field values. All is working now. Thanks again! You've been a great help.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community