instrad of appendTo
instrad of appendTo
I am using this function
(function($){
$.extend({
playSound: function(){
return $("<embed src='"+arguments[0]+"' hidden='true' autostart='true' loop='false' class='playSound'>").appendTo('body');
}
});
})(jQuery);
I call this function inside a jquery dialog
my_dialog = $(modal).dialog({
buttons: buttonsOpts,
modal: true,
title: opts.dialogButton,
open: function(event, ui) {
$.playSound('notify.wav');
}
});
as per the function it appends to body lot of html.....
once the dialog is closed I want to delete this appended html .Please advice me how.
Topic Participants
fachhoch
jakecigar