<form id="imageform" method="post" enctype="multipart/form-data" action='path+controller'>
$("#imageform").ajaxForm({
target: '#preview'
}).submit();
I am using ajax to upload an image file. It is running successfully.But i am facing issue with to get values after successfully uploaded.Want to get some values from backend in javascript variabe. As we get success on ajax call. Please revert me back as soon as possible.