This is a migrated thread and some comments may be shown as answers.

Use of css() method in JQuery?

1 Answer 57 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Aarti
Top achievements
Rank 1
Veteran
Aarti asked on 26 Oct 2020, 08:10 AM
Hello All, I am preparing for some JQuery interview questions and I want to know what is the use of css() method in JQuery? As I know It facilitates to get one or more style properties but I want to know more about it. If anyone know, Please explain me.

1 Answer, 1 is accepted

Sort by
0
Stoyan
Telerik team
answered on 27 Oct 2020, 01:13 PM

Hi, Aarti,

Thank you for your question.

The css() method in jQuery is used to get or change the style of a selected element. I created this example to highlight some use cases.

You can review the official jQuery documentation for a more detailed explanation of the method. Also, you can check this StackOverflow thread, where the topic is discussed in a more custom scenario.

Feel free to get back to us if you have any additional Kendo UI related questions.

Regards,
Stoyan
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
General Discussions
Asked by
Aarti
Top achievements
Rank 1
Veteran
Answers by
Stoyan
Telerik team
Share this question
or