Hey I have a bunch of JavaScript/Jquery code that works really well when I use a Content-Editor webpart, but does not execute when I add the same code to the VisualWebPart mark up.
I am referencing the JavaScript in the following way for both:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
//Code here
</script>
Any idea why my JQuery code is not being recognized? (Yes I am using the $(document).ready(function() { .. }) )
Note: The JQuery code is not loaded on the page
I am fairly new to SharePoint development, visual webparts in particular. If you could help out I'd truly appreciate it.
Thank You, MyName.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
alert('test!');
//move he last list item before the first item. The purpose of this is if the user clicks to slide left he will be able to see the last item.
$('#carousel_ul li:first').before($('#carousel_ul li:last'));
... more Code
});
</script>

