skip to Main Content

Ajax call from click event issue – Jquery

Look at the HTML code below: <div class="user-avatar-wrapper"> <img class="profile-pic" src="/placeholder.png" alt="" /> <div class="upload-button"></div> <input class="file-upload" type="file" accept="image/*"/> </div> Now I want to trigger the file upload and call to ajax on the click by .upload-button. This is how…

VIEW QUESTION

Jquery ajax call wrong payload

I have some troubles whit jquery ajax call, infact I tried to perform a post call passing like data a string variable: myVar = 'Hello'; $.ajax( type: 'POST', url : 'https://...', data: myVar, success : function(data) { }, complite: function()…

VIEW QUESTION
Back To Top
Search