I want to know how I can validate if an input parameter in a JavaScript function contains a substring. I have this:
function SweetAlert(Action) {
if ($(Action:contains('Create')) == true) {
swal('Buen trabajo!',
'se creó el registro!',
'success');
}
}