Sunday, 2 June 2013

jQuery .click() function not working

jQuery .click() function not working

I'm pretty sure my error is going to be obvious. I've been working for the last 6 hours and just can't find the brain power to figure where the hell I'm going wrong. If someone can let me know I'd really appreciate it.
Please note, I might commit suicide on finding out my error.
<!DOCTYPE html>

<html>
    <head>
        <script src="https://d10ajoocuyu32n.cloudfront.net/jquery-1.9.1.min.js"></script>
        <script>
            $("#addCompanies").click(function() {
                alert("hello");
            });
        </script>
    </head>
    <body>
        <a id="addCompanies">Continue</a>
    </body>
</html>

No comments:

Post a Comment