How would you use CSS within a jQuery script, so that if javascript were disbaled within the browser both the jQuery script and CSS would not show up?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Another approach I’ve seen is to dynamically add a special css class to the body tag via javascript, and then preprend javascript-only CSS selectors with that css class.
eg: