jQuery plugin Within Skuid / $j

  • 1
  • Question
  • Updated 5 years ago
  • Answered
How to Extend Jquery with Plugin while working with SKUID?

I am messing with Twitter typeahead.js and the Functions are not showing up in the standard $ scope. Stumbled upon $j which is responding a lot nicer.

Thoughts?
Photo of Jacob Flatter

Jacob Flatter

  • 1,512 Points 1k badge 2x thumb

Posted 5 years ago

  • 1
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
You are right --- attaching additional jQuery plugins to the global variable $ is not going to make it available from within Skuid, because this is not referring to the version of jQuery that Skuid is using internally.

Use $j and skuid.$ instead --- both should point to the same jQuery version. We recommend using skuid.$, $j is only available for backward compatibility. These variables both point to the version of jQuery that Skuid is using internally.