Using $(this).parent().append(HTML); for some reason will not work properly...
- $('.categories').live('change',function(){
var video_id = $(this).val();
$.ajax ({
type: 'post',
url : 'http://dev.touchstorm.com/ten_hpn_admin/index.php/manage_user/get_videos',
data: video_id,
success: function(results) {
$(this).parent().append('<br/><div class="video_results">' +
results +
'</div>');
} // end success
}); // end ajax
});
What I am trying to add a div to the parent of the item I just changed. However, this has been unsuccessful. Could you all please help me out?