i am working on a jobportal site, i have a user table, when i registered with some fields before login, i need to update that user table after login to applicant account.. i have a button to update the user table, when i click on button it goes to another page for updation, i need an ajax code which i click on personal info button and the form will slidetoggle down slow in the same view not an another view... i have the following code which is not working...
<script>$("#editinfo").click(function () {
var myform = document.getElementById(".myform");
var fd = new FormData(myform);$.ajax({
url: "/ADashboard/Editinfo/",
data: fd,
cache: false,
processData: false,
contentType: false,
type: 'POST',
success: function (dataofconfirm) {
// do something with the result
}
})
});</script> if any one have ajax code to solve my problem, please share it with me