Tutorialspoint
Drag to reposition
Contributed Questions (138)
Filter
loader

How to get an attribute value in jQuery?

With jQuery, I am trying to get the value of the height attribute of the image (<img>) element. I want an alert box to show the attribute value on button click. How can I get the value?  Here’s my HTML code: , I want to get the height of the image.

How to select multiple elements with jQuery?

I am having some elements in my code: , I want to select all the elements using jQuery, to change the font color. How can I select multiple elements?

How to select a single element which matches the given ID using jQuery?

I want to select a div from 3 divs, which matches the given ID.  I have the following divs: , The div element with id = div1 is what I want to select. How can this be done?

How to call a function inside a jQuery plugin from outside?

I need to set property for the elements. Also, I am quite confused with how to use jQuery plugins. How can I call a function inside a jQuery plugin from outside and print the result in log.

How to call a jQuery plugin function outside the plugin?

I am working on jQuery and its plugins. I am quite confused with how to use jQuery plugins. How can I call a jQuery plugin function outside the plugin?

How to call a jQuery library function?

I have setup environment for jQuery on my local machine. Now, I am moving towards other concepts of jQuery. How can I call a jQuery library function? Which tag is used to call a jQuery library function?

How to include CDN Based Version of jQuery in my HTML file?

Environment can be set for jQuery on local machine or based on CDN. How to include CDN based version in jQuery in my HTML file. What all options are available for CDN based version of jQuery?

How to setup jQuery on my web server?

I have a website and I want to setup jQuery on my web server itself. jQuery can be set using the Google or Microsoft CDN easily. But, I want to setup jQuery on my web server. How can I set environment easily? Which tag is used for this purpose?
Advertisements
Contribution

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.