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

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -