jQuery, Twiter bootstrap: How do I generate alerts(and text) on based on actions?

jQuery, Twiter bootstrap: How do I generate alerts(and text) on based on actions?

Here is my html for alerts

<div id="feature" class="feature">
<div id="alerts">
</div>
# other html data
</div>

Here is my `Ajax` call

            $.ajax({
type: 'POST',
url: 'addVideo',
data: {
video_title: title,
playlist_name: playlist,
url: id,
// csrfmiddlewaretoken: '{{ csrf_token }}',
success: function() {
$('#alerts').addClass('alerts').addClass('alert-success').append('msg').fadeIn('fast');
}
},
})

**Needed**
- Based on response I would like to insert appropriate alert in text automatically

I am learning jQuery and I am sure this has error, but not able to understand where this is failing