qosaservice.blogg.se

Jquery on resize complete
Jquery on resize complete







Output 3: On clicking on the hyperlinks, the respective images will be opened.Ģ. Output 2: After clicking on the button (“Click me”) the background color of flower changes to “red”. Output 1: Before clicking on the button (“Click me”). Though it contains two anchor tags the first anchor tag which is found, applied its style.backgroundColor = “red” to only for first anchor tag. In the querySelector() method if we pass the multiple selectors it will return the first element that matches the specified selectors.

jquery on resize complete

By using the querySelector(“a”).style.backgroundColor = “red” we have passed the anchor tag (“a”) to the querySelector. The following query selector contains two Įxplanation of the above code: In this example, we can observe that we have used two anchor tags and inside the anchor tag we have passed the hyperlink of two images. Below is the example of Jquery by using type.

jquery on resize complete

In jQuery, you can select elements in a page using many various properties of the element they are Type, Class, ID, Possession of Attribute, Attribute Values, etc.









Jquery on resize complete