0

hey, im working on a site on drupal with a theme, i have the main page with slider, i created a new page and i want to use some jquery there, but i search on internet they said that add scripts[] = jquery.js into you them file, the problem when i do this
the page that i want to use jquery work fine , but the main page that content slider stoped and all thingss taht use jquery in that, only the new page work, and drupal menu bug too, and i use this drupal_add_js('https://code.jquery.com/jquery-1.11.2.min.js', 'external'); this work and i try same for internal file dint work, but drupla theme bug when i try to edit on setting icon on specific bloc, and its cdn not in local, can some1 help me how to make it in local thx alot

1
Contributor
1
Reply
7
Views
2 Years
Discussion Span
Last Post by younes.keraressi
0

i found a solution i dont know what reason for that but,
when i use

<script type="text/javascript">

$(document).ready(function()
{
alert("not GG");
});

</script>

this not work.

<script type="text/javascript">

jQuery(document).ready(function()
{                               
alert("GG"); // :D
});

</script>

this work, GG mean good game, but here it mean good girl or good guy hehe

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.