Installing jQuery?

Get jQuery up and running in a minute or less: Insert this into your HTML (most commonly in the head, but you can throw it before the end body tag too): Then place a script element after your jQuery one. This would alert ‘hello’ after the DOM is ready. Read the documentation. Using jQuery locally: After … Read more

How to use jQuery qTip?

I believe the problem stems from incompatibility between the new qTip versions and jQuery. I’ve spent the last hour testing code with qTip to try and find out why my code refused to work and after looking through the forums to see if I could find similar problems I’ve noticed that the following code within the thread … Read more

What is different between $(document).on() and $(element).on()

Main difference is already answered by @Mukesh. I will try to add one more thing. When you click(or any other event) on an element(like div or button) in the html document, that clicking event is propagated to the parent elements of that element. So if you have structure like this: and you click on the button, that click … Read more

JavaScript: filter() for Objects

Never ever extend Object.prototype. Horrible things will happen to your code. Things will break. You’re extending all object types, including object literals. Here’s a quick example you can try: Instead create a function that you pass the object.