0

I added cool css menu from one website, it uses jquery version 2. and above, but I had my own custom elements which now works not properly with that version, IE always drops error on that jquery, I wonder if I could disable jquery in some sections of page, for example

<div>jquery version 2.* enabled here</div> <div>jquery is disabled here</div>

so that I can use my own custom elements without touching jquery functions.

Vaibhav Mandlik
  • 51
  • 2
  • 13
Medet Tleukabiluly
  • 11,662
  • 3
  • 34
  • 69

1 Answers1

0

No you can not. Use the latest jQuery 1.x, which will work for both.

http://jquery.com/download/#jquery-1-x

jln-dk
  • 294
  • 1
  • 2
  • 11
  • but it didn't, when i use it it says '$' is undefined or something,forgot. – Medet Tleukabiluly Mar 28 '14 at 14:19
  • i need to run 2 jquery libraries, my custom controls work with jquery 2.x, but this element which i added uses old version of jquery, and exception is kind of "could not set property of 'something', because it's null" – Medet Tleukabiluly Mar 28 '14 at 14:23
  • @MedetTleukabiluly Then adjust your code to work with the latest jQuery... making it work for both versions of jQuery isn't a fix... in fact you're creating yourself more work and troubles by doing so... – Adrian Aug 12 '18 at 12:38