このコードはホームページでは機能しますが、他のページでは機能しません。何が問題なのか理解できません。
codeigniter 構成ファイルでは、「csrf_protection」も FALSE です。
Jクエリ
$(document).ready(function () {
$("#services").hover(
function () {
$('.dropdown-menu', this).not('.in .dropdown-menu').stop(true, true).slideDown("fast");$(this).toggleClass('open');},
function () {
$('.dropdown-menu', this).not('.in .dropdown-menu').stop(true, true).slideUp("fast");$(this).toggleClass('open');}
);
});
HTML
<li id="services" class="dropdown" data-wow-delay="0.2s"><a <?= active('services') ?> data-toggle="dropdown" href="#">Services</a>
<ul class="dropdown-menu" role="menu">
<li><a href="<?= base_url('services/dry-cleaning') ?>">Dry Cleaning</a></li>
<li><a href="<?= base_url('services/fluff-fold') ?>">Fluff & Fold</a></li>
<li><a href="<?= base_url('services/wedding-gowns') ?>">Wedding Gowns</a></li>
<li><a href="<?= base_url('services/drapery') ?>">Drapery</a></li>
<li><a href="<?= base_url('services/table-bed-linens') ?>">Table & Bed Linens</a></li>
<li><a href="<?= base_url('services/alterations') ?>">Alterations</a></li>
<li><a href="<?= base_url('services/purse-rug-leather-cleaning') ?>">Purse | Rug | Leather Cleaning</a></li>
</ul>
</li>