We use the jQuery modal dialog box to get confirmation from users before deleting an item. The modal dialog works fine as long as there are no YouTube videos on the screen.
If there is a YouTube video, a dialog box appears below the video. I tried changing the z-index of the dialog to 3999 but not using it. (I don't know much about CSS)
$('#dialog').dialog({
autoOpen: false,
modal: true,
width: 300,
zindex:3999,
buttons: {
'Ok': performDelete_dialog,
'Cancel': function(){$(this).dialog('close');}
}
});
Can anyone suggest what we should do to place the jquery dialog on top of YouTube videos?
source
share