$.fn.player = function() {
$(this).find('audio').on('canplay', function(e) {
console.log(e);
});
}
$(this).find('audio')[0].oncanplay = function(e) {
console.log(e);
}
$('.add').on('submit', function(){
var formData = new FormData(this);
$.ajax({
type: "POST",
url: "engine/ajax/my_addotziv.php",
data: formData,
processData: false,
contentType: false,
success: function(data){
// -- code ---
}
});
return false;
});