Jump to content


Member Since 08 Dec 2016
Offline Last Active Dec 12 2016 07:58 AM

Topics I've Started

Append a button on options content

08 December 2016 - 07:07 AM

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