Jump to content

Append a button on options content

jquery javascipt

  • Please log in to reply
1 reply to this topic

#1 stephen619



  • Members
  • Pip
  • 1 posts
  • LocationSouth Africa

Posted 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


#2 Amit Shah

Amit Shah

    grocery CRUD Master

  • Advanced Member
  • PipPipPip
  • 1,192 posts
  • LocationMumbai, India

Posted 21 December 2016 - 08:19 AM

u can use add_action functionality ... please read the documentation .. such features required are already shared in there..


Happy GCing:)

Also tagged with one or more of these keywords: jquery, javascipt

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users