www.webdeveloper.com
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2012
    Posts
    76

    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
    Posts
    275
    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.
    The Time Through Ages
    In the Name of Allah, Most Gracious, Most Merciful
    1. By the Time,
    2. Verily Man is in loss,
    3. Except such as have Faith, and do righteous deeds, and (join together) in the mutual enjoining of Truth, and of Patience and Constancy.

Thread Information

Users Browsing this Thread

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

     

Tags for this Thread

Bookmarks

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