My ascx looks like this:
<SharePoint:ScriptLink ID="ScriptLink1" runat="server" Name="/_layouts/1033/MyProject/js/test.js"/>
test: <input id="example" />
test.js looks like this:
$(document).ready(function () {
alert("test");
});
In MyProject
I have a folder called js
and in that folder I have test.js
I was under the impression that when I debugged my webpart it would pop up an alert taht said "test" but it does nothing. Am I doing something wrong here?