I am able to remove html element using jquery using $(element).remove();. But there is a javascript code, like setinterval(), which should be removed. Yes, I can do clearInterval() for particular that case, but what if other types of javascript code?
<script>
var baseurl = '...';
jQuery(function(){
new AjaxUpload('#upload_button', {
action: baseurl,
onSubmit : function(file , ext){
jQuery('#...').val(file);
},
onComplete: function(file, response){
// do something....;
}
});
});
</script>
But I am unable to do so.
Can anybody help me out this problem?