You need the document ready code.
http://docs.jquery.com/Tutorials:How_jQuery_Works#Launching_Code_on_Document_Ready

Otherwise your Javascript just executes the code without the <div> tag
being loaded at all, thus nothing happens..

On Oct 30, 4:44 pm, numerical25 <numerica...@aol.com> wrote:
> I just started on a book and before I can get started I am already stuck.
> Here is what ive done
>
> 1. Ive added jquery to my server and I included it in my html. I check my
> source code in browser and it shows that it's there. I have version 1.3.2
>
> 2. I added this line of code
> <script src="jquery.js"></script>
> <script type="text/javascript">
>         $('#go').html("I have added some text to an element");
> </script>
>
> 3. In my body tag I added this
> <div id="go">
>
> And nothing is happening. I tried calling the class and the id.
> --
> View this message in 
> context:http://old.nabble.com/Simple-question.-my-query-isnt-working-tp261394...
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to