Hi All, I'm just starting out trying to learn JQuery and I have a very Newbie question. I've tried to use the following code to get the link to change the span text red but get an 'Object doesn't support this property or method' error when I click the link:
--code-- <script language="javascript"> $(document).ready(function() { $("a[rel='redlink']").bind('click', function() { $('span').addclass('red'); }); }); </script> <style type="text/css"> .red { color: red; } </style> </head> <body> <p><a href="javascript: void(0);" rel="redlink">click me</a></p> <p>Eu fugiat nulla pariatur. <span>Qui officia deserunt lorem ipsum dolor sit amet,</span> quis nostrud exercitation. Cupidatat non proident.</p> </body> </html> --end code-- Thanks for any explanation! Again, I'm just a newbie starting out.