Java script problem - Joomla! Forum - community, help and support


i got small java script want on every page.

easy enough in <script> tag, clueless how connect js folder.

the script:

code: select all

<script type="text/javascript">
  jquery(document).ready(function(){
        // dropdown
        jquery('.parent').addclass('dropdown');
        jquery('.parent > a').addclass('dropdown-toggle');
        jquery('.parent > a').attr('data-toggle', 'dropdown');
        jquery('.parent > a').attr('href','#');
        jquery('.parent > a').append('<span class="caret"></span>');
        jquery('.parent > ul').addclass('dropdown-menu');
    });
</script>


i saved script dropdown.js, in js folder , linked it, doesn't work.
know it's easy - once told how. :p






Comments

Popular posts from this blog

Joomla 3.3 Installation Error message - Joomla! Forum - community, help and support

Multilanguage infinite redirect loop error. - Joomla! Forum - community, help and support

Thread: Wine can't find the cd