I have a js function as below:
function show() {
$(document).ready(function() {
$('#container').load('show_my_file.php');
$('head').append( $('<link rel="stylesheet" type="text/css">').attr('href','show_my_file.css') );
})
}
This function is supposed to load the show_my_file.css to render #container (which now loads show_my_file.php), but it didn't work.
Does anybody how to how solve it? Thanks in advance.