Solved

Is it a correct syntax

Posted on 2011-09-10
2
374 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
ID: 36515939
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
ID: 36516163
Excellent
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to only allow authenticated (logged in) users to access Spring restful service 3 49
oracle 11g 23 51
javap not working 8 39
java stored proc example 9 23
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

867 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

20 Experts available now in Live!

Get 1:1 Help Now