[Solved] How to add a CSS class to a div? [duplicate]


You can do it by use below code:

$('#stripe_error').text(response.error.message).addClass('alert alert-error')

solved How to add a CSS class to a div? [duplicate]