Hi All,

I am a new person to the world of jQuery.

I am having a problem in my first program only. Please tell me what is
wrong over here.

My code is :

<html><head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
        $(document).ready(function() {
   $("a").click(function() {
     alert("Hello world!");
   });
 });
</script></head>
<body>
        <a href="http://google.com";>google</a>
</body>
</html>

Output which I am getting is :

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss
\fcharset0 Arial;}} {\*\generator Msftedit
5.41.15.1507;}\viewkind4\uc1\pard\f0\fs20 \par \par \par \par \tab
google\par \par \par }

Reply via email to