Web Design: jQuery css() function

The tutor shows another jQuery function: css()



This text and background will both change color.



The jQuery code that changes the text from ordinary to white on red:

$(“#p_jun_20_2016”).css({“color”:”rgb(255,255,255)”,”background-color”:”rgb(150,10,10)”});

I’ll be giving more coverage on jQuery in future posts:)

Source:

w3schools

Pollock, John. jQuery: A Beginner’s Guide. New York: McGraw-Hill, 1994.

Jack of Oracle Tutoring by Jack and Diane, Campbell River, BC.

Leave a Reply