Creative UI/UX Designers Question:

Download Job Interview Questions and Answers PDF

Can we apply css in div element using JQuery library?

Creative User Interface UX Interview Question
Creative User Interface UX Interview Question

Answer:

This is example to apply css on a div element which have id name myDivId.
$("#myDivId ").css("border","3px solid red");
To apply css on all div elements use below code.$("div").css("border","3px solid red");

Where$("div") pointing all div elements in the page.For You need to use.$("P") on above code.

Download Creative User Interface UX Interview Questions And Answers PDF

Previous QuestionNext Question
How to get value of textbox in jquery?How to modify css class using JQuery library?