I have a sample code:
$('.tab').click(function(){
$('head').append('<link href="\"style.css\"" rel="\"stylesheet\"" type="\"text/css\"">');
$('head').append('<script src="\"click.js\"" type="\"text/javascript\""></script>');
});
This code only add file css on head, can't add click.js on head, how to fix