jquery add a css file to html code example
Example 1: jquery css
$('#element').css('display', 'block'); /* Single style */
$('#element').css({'display': 'block', 'background-color' : '#2ECC40'}); /* Multiple style */
Example 2: add css file through jquery
$('head').append('<link rel="stylesheet" href="style2.css" type="text/css" />');