Solved

please see what is wrong with my jquery code

Posted on 2012-04-07
6
205 Views
Last Modified: 2012-04-22
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
Comment
Question by:jecommera
  • 3
  • 3
6 Comments
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 37819058
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
 

Author Comment

by:jecommera
ID: 37819062
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
 
LVL 82

Expert Comment

by:leakim971
ID: 37819078
maybe you need to refresh/clear your cache : http://jsfiddle.net/avdQE/
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 

Author Comment

by:jecommera
ID: 37819102
Hi,

This is front end local host.
Does the code run on your computer?
0
 

Author Comment

by:jecommera
ID: 37819104
actually its working fine now.

By the way what is that jsfiddle site you are using above?
0
 
LVL 82

Expert Comment

by:leakim971
ID: 37819144
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction Got endorsements from your clients?  Great!  There is almost nothing better than word-of-mouth advertising.  But how can you do that on the internet?  Sure you can make a page for endorsement quotations and list them all, but who is …
PROBLEM: The other day I was working on adding an ajax request to a webpage that already had a dialog box on the page.  The dialog box was using relative positioning to be positioned next to a form field I had on the page.  Everything was working…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now