Keyword

itemform template : JQuery not working

More
9 years 1 month ago - 9 years 1 month 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: 9 years 1 month ago by Fred.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 1 month 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.

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


Powered by Kunena Forum