Solved

Is it a correct syntax

Posted on 2011-09-10
2
373 Views
Last Modified: 2012-05-12

Is it a correct JQuery syntax ? This seems does not work.

 $("input,td,a,select,span,textarea,th").css("fontSize", 14px)

I wish to set the font size of all elements to 14px using jquery.
0
Comment
Question by:cofactor
2 Comments
 
LVL 40

Accepted Solution

by:
gurvinder372 earned 200 total points
Comment Utility
syntax wise this is in-correct, it should be font-size

why don't you use

$("*").css("font-size", 14px)
0
 

Author Closing Comment

by:cofactor
Comment Utility
Excellent
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now