Newbie jquery: does the .css() function alter css properties of an element if the properties are included within the HTML or does it locate and subsequently alter the element from an external stylesheet (if there is one)?
e.g.
$('#main').css('background-color', '#eee');
Since I have no inline <style> tags within my HTML, does the function look up the #main class in the linked external stylesheet?
That code modify the inline style properties of the element. It doesn’t touch at all your css file.
Your selector will look for an element with
id = mainand setstyle.backgroundColor = '#eee'.