This is how I am calling the sweet alert using JQuery:
swal({
buttonColor: '#000000',
title: "Error!",
text: "Please Enter Following Fields it Cannot be Left Blank\n ------------------------ \n"+fieldCheck,
type: "error"
});
But still, when the alert is being displayed with the ok button it has a primarily blue color which doesn't change.
also i tried to add a class but i am not able to figure out that how can i apply a class.