Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 214
  • Last Modified:

please see what is wrong with my jquery code

Hi I am just learning a bit of jquery.

Can someone please advise what is wrong with my code below?

thanks


<html>
      <head>
            <title>Follow me!</title>
            <script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script>
            <script type="text/javascript">
                  $(function() {
                        $("<p>Hi there!</p>").insertAfter("#followMe");
                  });
            </script>
      </head>
      <body>
            <p id="folowMe"></p>
      </body>
</html>
0
jecommera
Asked:
jecommera
  • 3
  • 3
1 Solution
 
leakim971PluritechnicianCommented:
followMe vs folowMe

you miss one << l >> in the
<p id="folowMe"></p>

Open in new window

should be :
<p id="followMe"></p>

Open in new window

0
 
jecommeraAuthor Commented:
thanks, however I still get the no paragraph added
<html>
      <head>
            <title>Follow me!</title>
            <script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script>
            <script type="text/javascript">
                  $(function() {
                        $("<p>Hi there!</p>").insertAfter("#followMe");
                  });
            </script>
      </head>
      <body>
            <p id="followMe"></p>
      </body>
</html>
0
 
leakim971PluritechnicianCommented:
maybe you need to refresh/clear your cache : http://jsfiddle.net/avdQE/
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
jecommeraAuthor Commented:
Hi,

This is front end local host.
Does the code run on your computer?
0
 
jecommeraAuthor Commented:
actually its working fine now.

By the way what is that jsfiddle site you are using above?
0
 
leakim971PluritechnicianCommented:
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now