I'm trying to use a plugin for masked input. The issue I'm facing is: Uncaught ReferenceError: jQuery is not defined
I'm using v. 2013.3.1324
I add the script from a user control that way:
But as soon as the resource is loaded I have the "Uncaught ReferenceError: jQuery is not defined" error in Chrome console.
The script starts with "(function ($) {................"
Any hint?
I had no problem so far in using jQuery in local function or scripting but this plugin is giving issue, maybe because it starts with "(function ($) {" ?
Thanks in advance
I'm using v. 2013.3.1324
I add the script from a user control that way:
' On control page init CoreHelpers.AddControlScript(Parent.Page.ClientScript, "admin/jquery.inputmask.bundle.min.js", String.Format("{0}admin/jquery.inputmask.bundle.min.js?v={1}", LinkHelpers.VLink(LinkType.Script), AppSettings.StaticFilesVersion))' Wich calls this function so not to add duplicate scripts Public Shared Function AddControlScript(scriptManager As ClientScriptManager, key As String, script As String) As String Dim returnScript As String = String.Empty If Not scriptManager.IsClientScriptIncludeRegistered(key) Then scriptManager.RegisterClientScriptInclude(key, script) End If Return returnScript End FunctionBut as soon as the resource is loaded I have the "Uncaught ReferenceError: jQuery is not defined" error in Chrome console.
The script starts with "(function ($) {................"
Any hint?
I had no problem so far in using jQuery in local function or scripting but this plugin is giving issue, maybe because it starts with "(function ($) {" ?
Thanks in advance