Created
May 6, 2011 07:25
-
-
Save crazylion/958559 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
啟用上傳 | |
$(function () { | |
$('.file_upload').each(function(){ | |
var _this=this; | |
$(this).fileUploadUIX( | |
{ | |
maxFileSize: 3000000, // Size in Bytes - 5 MB | |
maxNumberOfFiles: 1, | |
acceptFileTypes: /(png)|(jpe?g)|(gif)$/i, | |
onCompleteAll: function (list) { //上傳完成後呼叫的FUNCTION | |
/* your code after all uploads have completed */ | |
var hidden_val = $('input[name=order]',_this).val(); | |
這裡想得到 目前 表單裡的#order的value該怎麼半 用$(this) 應該是抓不到目前的對象喔 | |
} | |
} | |
} | |
); | |
}); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment