Simple Code, Frustrating Error - Please Help!

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Bbob
Forum Commoner
Posts: 57
Joined: Sat Aug 07, 2010 4:46 am

Simple Code, Frustrating Error - Please Help!

Post by Bbob »

Hi

Im getting an error message on this simple code. I don't know what to do.

Here's the code. Dreamweaver says there is an error in line 5. This is register.js.

Code: Select all

<script>
$(function()
{
        $("#go").click(function(){
                                                alert("hi");
                                            });
});
</script>
I have a php file that contains this js script along with others.

Code: Select all

<script type="text/javascript" src="../../../require/jquery.js"></script>
<script type="text/javascript" src="../../../require/plugin/jquery.ba-hashchange.min.js"> </script>
<script type="text/javascript" src="../../../require/plugin/jquery-ui-1.8.13.custom.min.js"></script>
<script>
        $(function()
        {
                $("#accordion").accordion();                                                            
        });
</script>

<script type="text/javascript" src="../script/js/register.js"></script>
User avatar
Jade
Forum Regular
Posts: 908
Joined: Sun Dec 29, 2002 5:40 pm
Location: VA

Re: Simple Code, Frustrating Error - Please Help!

Post by Jade »

It would be helpful to give us the actual error message.
Post Reply