I’m using load() to insert content into a div container and some of this content needs to be styled using jQuery.
Is there any way to load in the content with an external script without having to place <script> tags into the content itself?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
using css should work, you just declare css styles that will affect your loaded data and then they are considered when rendering without having to do anything else
If you need to do it with javascript you can use the complete callback of load function: