Solved

please see what is wrong with my jquery code

Posted on 2012-04-07
6
206 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article you'll learn how to use Ajax calls within your CodeIgniter application. To explain this, I'll illustrate how to implement a simple contact form to allow visitors to send you an email through your web site.
This article discusses how to create an extensible mechanism for linked drop downs.
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…

867 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

22 Experts available now in Live!

Get 1:1 Help Now