Keyword

itemform template : JQuery not working

More
8 years 6 months ago - 8 years 6 months ago #151936 by Fred
Hello there,
I set up a template overide for the itemform.php file.
I want to use jQuery on this template but I can't manage to make it work.
My Jquery file is place here : $document->addScript(JUri::base() . 'templates/gk_creative/js/annuaire.js');
If I check on an item.php file it's working just fine as you can see here : acddp.agence-neko.com/annuaire-k2/inscription.html alert('ok') + all div background in red.
But on the add menu ( acddp.agence-neko.com/add.html ) it's nor working and I really don't know why.

Has someone got an idea ?
Last edit: 8 years 6 months ago by Fred.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 6 months ago #151947 by Krikor Boghossian
Replied by Krikor Boghossian on topic itemform template : JQuery not working
How was that js file added?
The itemform uses the component.php template, so you need to add that js file there as well.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum