Posted By

buda9 on 05/20/14


Tagged

jquery font-family


Versions (?)

Apply font-family using jQuery


 / Published in: jQuery
 

As you can see you need to add backslash and apostrophe => \' to font family with space between. If there isn't spaces in font name just use double apostrophes, e.g. "Lucida Grande"

  1. $(document).ready(function(){
  2. $("body #results p").css("font-family","\'Lucida Grande\'");
  3. });

Report this snippet  

You need to login to post a comment.