Jump to content

Add an id attribute to the ACP dashboard graphs div


Recommended Posts

The div I'm talking about is

<div class='center' style='padding: 1px;'><img src="{$this->settings['base_url']}module=system&amp;section=charts&amp;days=7" alt="{$this->lang->words['reg_trends_chart']}" style='width:98%;' /></div>

I'm fiddling around with changing that graph using the Google Charts API and it would make my life a lot easier if that <div> had an id attribute :)

At the moment I rely on it being the only <div> on that page with the 'center' class which isn't ideal for obvious reasons.

jQ('.center img').remove();

jQ('.center').attr('id', 'cit-db-chart');

Ta in advance :)

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...