[RESOLVED]jqery doesn't work after another jquery script is written in one page

Hi all ,

If my post make u all annoyed , so sorry .Because  of I am new to jquery and I fount many problems with that now.

I have to do two slide show in my default page .

I tried one  of these slide show with jquery and Its ok .

Next I tried another left slide show with another jquery and script method. This also ok .

But after finished second slide show , first slide show doesn’t  work .Here is my code .

/* This is for first slide show /*
<script src="../Scripts/jquery.min.js" type="text/javascript"></script>
<script src="../Scripts/jquery-ui.min.js" type="text/javascript"></script>
<script type="text/javascript">
     $(document).ready(function () {
     $("#featured > ul").tabs({ fx: { opacity: "toggle"} }).tabs("rotate", 5000, true);
     });
</script>

/* This is for second slide show /*
<link href='http://fonts.googleapis.com/css?family=Source+Code+Pro|Open+Sans:300' rel='stylesheet' type='text/css'>
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="Scripts/jslide.js" type="text/javascript"></script>
<script src="Scripts/jquery.secret-source.min.js" type="text/javascript"></script>
<script class="secret-source" style="display:none;">
    jQuery(document).ready(function ($) {
         $('#banner-fade').bjqs({
         height: 320,
         width: 620,
         responsive: true
            });

            });
</script>

         <script>
             jQuery(function ($) {

                 $('.secret-source').secretSource({
                     includeTag: false
                 });

             });
        </script>

Tell me How should I do ? Please help me :(

Thanks you all in advance

Hi,

take out this line <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>.

You only need to reference jQuery once and only once in your rendered out page. Usually in ASP.NET you’d put it on the master page for easy usage.

Likely you copied the header of a sample and as such there are more references to (different) jQuery files.

Grz, Kris.

Hi XIII ,

Thanks You very much for your answer Laughing

Leave a Reply