Code:
cb.parent('tr').find('.btn-danger').text(data);
Can become:
Code:
$('#myCamp').text(data);
The difficulty is in the buttons you create with the crud->add_action method. These buttons must have a css class to enable jQuery to listen to the click event. Try to give the buttons a css class "make-active".
Then, see if jQuery can detect the event:
Code:
<script>
$(document).ready(function(){
$('.make-active').click(function(e){
e.preventDefault();
alert('You clicked on a button with the css class "make-active".');
});
});
</script>
Try if you get that working.