jQuery.createUploadForm is not a function-Collection of common programming errors
I am using ajaxupload for uploading and using jQuery 1.7.2. I got an error like this
TypeError: jQuery.createUploadForm is not a function
[Break On This Error]
... jQuery.createUploadForm(id, s.fileElementId, (typeof(s.data)=='undefined'?false...
my code is
function ajaxFileUpload()
{
jQuery.ajaxFileUpload
(
{
url:'',
secureuri:false,
fileElementId:'fileToUpload',
dataType: 'json',
success: function (data, status)
{
if(typeof(data.error) != 'undefined')
{
if(data.error != '')
{
alert(data.error);
}else
{
alert(data.msg);
}
}
}
}
)
return false;
}
and the html is
Please help me to solve this. Thanks in advance.