change css in jquery using if statement code example Example: set css using jquery $('.name').css('color':'blue');