私はこのコードを持っています:
$(".input_photo").click(function() {
$.post("ajax/imagefile.html", function(img){
complete: $(".bp_load").fadeIn(0).html(img);
});
});
ImagefileID を持つフォームと入力タイプ ファイルを含む単純な HTML ページですimageform。
そして、私は別のコードを持っています:
$('#photoimg').live('change', function(){
$("#imageform").ajaxForm({
target: '.preview'
}).submit();
});
liveWeb で検索したところ、非推奨であることを理解し、に変更しましonたが、機能しません。入力タイプ ファイルが変更されますが、イベントはトリガーされません。