Hi all how can I append a button the div with the id options-content below is the code I'm trying to use, all help is welcome.
JS in Header
<?php if($page_title = 'Assign Approved Orders') { ?>
$(function () {
$('#options-content').append('<a class="close-anchor btn" href="/distributors/distributor_logistics/create_deliveries"><i class="icon-plus"></i> Add Delivery</a>');
});
<? } ?>
This code is appending the button to all my other crud pages. Please note I'm using the twitter-bootstrap theme. Alternatively, is there a way to add javascript in the body tags, I feel that will solve my problem