www.webdeveloper.com
Results 1 to 2 of 2

Thread: jQuery is not working. Don't know why this isn't working!!!

  1. #1
    Join Date
    May 2012
    Posts
    82

    jQuery is not working. Don't know why this isn't working!!!

    I can't figure out why this is not working right now. Can anyone spot an error in the code below?

    Code:
    <div id="thinger">yellow.</div>
    <div id="gizmo">red.</div>
    
    
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
    
    <script>
    $(function(){
    
    $("#gizmo").css('color','red');
    $("#thinger").hide();
    	});
    </script>

  2. #2
    Join Date
    Sep 2007
    Location
    istanbul
    Posts
    315
    I wrote
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
    instead of
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>

    The code worked in Firefox 11.0
    Last edited by Ayşe; 02-20-2013 at 04:24 PM.
    Bismillahirrahmanirrahîm
    Hamd, Âlemlerin Rabbi, Rahmân, Rahîm, hesap ve ceza gününün (ahiret gününün) maliki Allah'a mahsustur. (Allahım!) Yalnız sana ibadet ederiz ve yalnız senden yardım dileriz. Bizi doğru yola, kendilerine nimet verdiklerinin yoluna ilet; gazaba uğrayanların ve sapıklarınkine değil.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles