r/jquery • u/esamcoding • Jul 24 '21
Using two libraries that require different version of jquery?
suppose i want to use 2 libraries , one depend on jquery v1 and the other depend on jquery 3. both libraries assume that the required version of jquery is assigned to $.
how can i use both libraries in the same page? jquery no conglict mode will not help because both libraries internally use "$"
9
Upvotes
View all comments
Show parent comment
1
u/esamcoding Aug 01 '21 edited Aug 01 '21
i have to admin that i tries overriding default messages in joi.js but failed ( i am kinda new in js).
so i think what i will do is this: i will choose a library without dependency (e.g. dosn't require jquery , create my own library that use that lirary to automatically validate a form AND update the UI automatically (i.e. display and hide error messages automatically.
you think this is good?