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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.