Click here to Skip to main content
15,914,287 members

Comments by Ahmed Amin (Top 3 by date)

Ahmed Amin 6-Feb-15 16:09pm View    
i have remove some codes
Ahmed Amin 4-Feb-15 11:34am View    
Thanks a lot

i try it as:

switch (data) {
case "0":
sweetAlert("Oops...", "Already subscribed before!", "error");
break;

case "1":
sweetAlert("Oops...", "you should provide us with your mail", "error");
break;

default:
sweetAlert("Good job!", "Congrats! ,your subscription accepted!", "success");
break;
}

and it works great ....
Ahmed Amin 4-Feb-15 11:25am View    
Thanks a lot,

it works now with "==" or "==="

please can i use here "switch case" - if yes please provide me with sample code to know how can i use it