Custom alert and confirm box in APEX with help of jquery

 Custom alert and confirm box in jquery 



Step 1)  Define Function at Function and Global Variable Declaration
 function yesnodialog(button1, button2,button3, element){
  var btns = {};
  btns[button1] = function(){
      element.parents('li').hide();
      $(this).dialog("close");
  };
  btns[button2] = function(){
      // Do nothing
      $(this).dialog("close");
  };
  btns[button3] = function(){
      // Do nothing
      $(this).dialog("close");
  };
 
  $("<div></div>").dialog({
    autoOpen: true,
    title: 'Condition',
    modal:true,
    buttons:btns
  });
}

 

 Step 2 ) Call the function wherever need by passing parameter

 yesnodialog('Yes','No','Cancel',$(this));

 

Comments

Popular posts from this blog

Telegram Integration with Oracle

The username or password for the connection pool named |apex||, are invalid, expired, or the account is locked

Enabled SQL Developer Web (SDW) & ORDS Database API ORDS 19.4