script type text javascript document ready function upload_image ajaxF

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
<script type="text/javascript">
$(document).ready(function(){
$('#upload_image').ajaxForm({
dataType: 'json',
success: processJson
});
});
function processJson(data) {
alert(data);
$('#mainn').html('');
$('#mainn').append('test');
$('#mainn').append(data);
};
</script>