What is the correct jQuery code to set the background color of all p elements to red?

Question:What is the correct jQuery code to set the background color of all p elements to red?

1.$("p").manipulate("background-color","red");

2.$("p").style("background-color","red");

3.$("p").layout("background-color","red");

4.$("p").css("background-color","red");


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!