Reputation: 4408
are there any problems mixing my code with standard javascript and jquery? Will things conflict? Would I be unable to use standard javascript within jquery calls?
Upvotes: 2
Views: 175
Reputation: 5868
The only issues you will find is if your code overwrites the base prototypes. Otherwise your code will work fine with javascript libraries and frameworks including JQuery.
Upvotes: 1
Reputation: 16139
I have had some problems with using onclick="javascript......" handlers at the same time as using jQuery handlers.
I would suggest if using jQuery to tend toward using it's handler system rather than the html versions.
Upvotes: 0
Reputation: 137460
This means that if you use jQuery, you use JavaScript at the same time.
So no, there will be no issues if you put JavaScript inside the code that already uses jQuery, because you add nothing new / conflicting. Because you already are using JavaScript within your code.
Upvotes: 4
Reputation: 42505
jQuery does a good job of keeping itself compartmentalized within the jQuery
(or $
) object, so it plays well with existing JavaScript, and even with other JS APIs. The only thing I can think of that you should really look out for is if you use $
elsewhere (for example, if you use PrototypeJS). In that case, you can use jQuery's noConflict.
Upvotes: 1
Reputation: 25475
No there wont be any problems.
JQuery is just JavaScript written by other developers available to you through an API. Therefore, JavaScript inside JQuery is just JavaScript inside JavaScript.
Upvotes: 0