I am using Jquery
https://code.jquery.com/jquery-1.12.2.min.js
Then i include my function file,which has this function
;(function($){
$.fn.UPLOAD_IMAGES= function(options) {
var defaults = {
main_url : mainurl
};
var options = $.extend(defaults, options);
// retus the jQuery object to allow for chainability.
retu this;
}
})(jQuery);
Then I am calling it on click event like
/*Image upload*/
var options_img = {
type: '',
id: $('#id').val(),
controller: 'listings'
};
$("#file_upload").UPLOAD_IMAGES(options_img);
/*End image upload*/
It give me TypeError
UPLOAD_IMAGES is not a function
I do not know what i have missed?
