Jump to content

[jQuery&JS] - Doesn't work, no matter what i do?


Niixie

Recommended Posts

Hey PHPFreaks!

 

I have a problem with jQuery, because, no matter how i do, or how i write, it just doesn't work! Nothing happends.

 

To test if it works, i have this code.

 

$(document).ready(function(){
    $('p').hide();
});

 

But it doesn't do anything.. I also tried to do something in JavaScript, but it didn't work either.

 

This is my head of the webpage

 

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta http-equiv="Content-Language" content="en-US" />
           
        <script type="text/javascript" src="adds/jquery-func.js"></script>
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
        
        <link rel="shortcut icon" href="images/ico/telephone.ico" />
        <link href="adds/styles.css" rel="stylesheet" type="text/css" />

 

This is the p that I'm trying to hide

 

<div id="content-right">
                    <p>HEy hey!</p>
                </div>

 

And heres a copy of my jquery-func.js

 

$(document).ready(function(){
    $('p').hide();
});

 

 

What do I do wrong, and what should i change?!

 

Thanks in advance

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.