$("#imageform").ajaxForm({ target: '#preview' }).submit().done(function( data ) { alert( "Data Loaded: " + data ); }); : <form id="imageform" method="post" enctype="multipart/form-data" action='<?php echo HTTP_INDEX ?>demo_upload/upload'>
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.