javascript - How to set CSS for the php script loaded by Jquery -


i have js function 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 supposed load show_my_file.css render #container (which loads show_my_file.php), didn't work.

does how how solve it? in advance.

the thing see wrong load(show_my_file.php); should

$('#container').load('show_my_file.php'); 

it worked me.


Comments

Popular posts from this blog

css - I want to align grid in center -

python - SWIG function not printing output -

Contact Form PHP Email Script -