Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

alert message

document.querySelector('#from1').onsubmit = function(){

 swal({
    title: "Are you sure?",
    text: "You will not be able to recover this imaginary file!",
    type: "warning",
    showCancelButton: true,
    confirmButtonColor: '#DD6B55',
    confirmButtonText: 'Yes, I am sure!',
    cancelButtonText: "No, cancel it!",
    closeOnConfirm: false,
    closeOnCancel: false
 },
 function(isConfirm){

   if (isConfirm){
     swal("Shortlisted!", "Candidates are successfully shortlisted!", "success");

    } else {
      swal("Cancelled", "Your imaginary file is safe :)", "error");
    }
 });
};
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript remove elements from array with value 
Javascript :: Datatable shows No data available in table in angular 
Javascript :: some js es6 
Javascript :: angular autofocus 
Javascript :: how to pass a component as a prop in react 
Javascript :: split text javascript 
Javascript :: Angular Quick Tip: Binding Specific Keys to the Keyup and Keydown Events 
Javascript :: js retry function if error 
Javascript :: how to access variables in a different script file 
Javascript :: append a method to an already existing class in javascript 
Javascript :: js deep copy 
Javascript :: npm jwt decode 
Javascript :: ja display snippet from text string 
Javascript :: regular expression url 
Javascript :: how to create an async function from a string in node js 
Javascript :: generator function 
Javascript :: package.json 
Javascript :: Create A Promise And Then Return It 
Javascript :: scroll div horizontally with move wheel js 
Javascript :: how to add elements into an array in javascript 
Javascript :: JSON schema enumerated type 
Javascript :: javascript true string to boolean 
Javascript :: enable emmet in vscode for jsx 
Javascript :: javascript window location 
Javascript :: how to navigate with navintems for react-bootstrap without refreshing the whole page 
Javascript :: jquery get multiple selected option value 
Javascript :: select ng-options set default value 
Javascript :: krakend config example 
Javascript :: remove duplicated from array 
Javascript :: feet to inches 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =