Ricky Barnes, asked on 9th Dec, 2017

How to get the height of a div element using jQuery?

The following is my HTML and I want to get the height of the <div> element: , The height should be visible in an alert box on button click.
David Meador, asked on 9th Dec, 2017

What is the difference between height and line-height?

How height and line-height different?  Is line-height also used to set vertical measurement? I want to add space to lines in HTML. Which of them will be suitable?
David Meador, asked on 9th Dec, 2017

What is the difference between append() and appendTo() in jQuery?

The append() method in jQuery appends content, but what is the purpose of appendTo() method. How append() and appendTo() methods are different?
David Meador, asked on 9th Dec, 2017

How to get the width of a div element using jQuery?

The following is my HTML and I want to get the width of the <div> element: , The width should be visible in an alert box on button click.
David Meador, asked on 9th Dec, 2017

How to set width and height of an element using jQuery?

With jQuery, I want to change the height and width of <div> element. How can I achieve this in jQuery? Which jQuery method should I use? For width, the following is my <div>: , For changing height, the following is my <div>: ,
David Meador, asked on 9th Dec, 2017

How jQuery selects elements using CSS?

How is it possible to work with CSS while using jQuery? I was wondering how can I use jQuery to select elements using CSS? Which method in jQuery makes this feasible?
Amit D, asked on 9th Dec, 2017

How to use jQuery.slice() method with no arguments?

I have used the jQuery.slice() method before to get the subset of elements. But, I was wondering the slice() method can be used without arguments? If yes, then how and what will be the result with zero argument.
Amit D, asked on 9th Dec, 2017

How to apply multiple CSS properties using jQuery?

With jQuery, CSS property can be applied using css() method: , But, for my code I want to apply more than one CSS property. How can I do it using jQuery. I want to change the text as well as background color.
Amit D, asked on 9th Dec, 2017

How to apply CSS properties using jQuery?

The following is my HTML code: , I would like to apply CSS using jQuery in the above code to use the CSS property color to change the text color. Using jQuery, how can I apply CSS properties?
Amit D, asked on 9th Dec, 2017

How to define multiple CSS attributes in jQuery?

With jQuery, CSS property can be easily applied using css() method as shown below: , But, for my code I want to apply more than one CSS attribute. How can I do it using jQuery. I want to change the font style as well as background color. The following is my HTML: ,
Alex Onsman, asked on 8th Dec, 2017

How does CSS Selectors work in jQuery?

With jQuery, I want to apply CSS to my HTML code and change the color of only one of the list item. How can I use CSS Selector to achieve this? The following is my HTML: ,
Alex Onsman, asked on 8th Dec, 2017

How to find all the siblings for the clicked element in jQuery?

The following is my HTML and on clicking the element <li>, I want to find the siblings: , With jQuery, which method I can use to find all the siblings?
David Meador, asked on 8th Dec, 2017

How to remove all child nodes from a parent in jQuery?

I have the following list: , With jQuery, I want to remove all child nodes on button click. What is the best way to do it and which method is preferred?
David Meador, asked on 8th Dec, 2017

How do I select text nodes with jQuery?

 I want to get all descendant text nodes of an element, as a jQuery collection. How can I do it? What is the best way to do that in jQuery? An example would work great for my understanding.
David Meador, asked on 8th Dec, 2017

Which one is the fastest between children() and find() in jQuery?

Both find() and children() method is used in jQuery to get a child node. But, which of these two methods should be used based on performance i.e. which one is the fastest?
Advertisements
Loading...
Unanswered Questions View All