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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.