Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 400
  • Last Modified:

Is it a correct syntax


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
cofactor
Asked:
cofactor
1 Solution
 
Gurvinder Pal SinghCommented:
syntax wise this is in-correct, it should be font-size

why don't you use

$("*").css("font-size", 14px)
0
 
cofactorAuthor Commented:
Excellent
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now