Hello,
I have for example a <div id="main"></div> and inside this div tag I load html content from extrernal file using jquery with .load() method. I can see evething has loaded normaly inside this div tag, but can not access any html tag loaded from the external html via css or jquery. Any advice would be very usefull. Thank you!
romanromeo89
0
Newbie Poster
Recommended Answers
Jump to Postsounds like the issue is related to the fact that you added data after the fact using ajax...
For example, you wouldnt be able to attach the click event using .click() because the elements havent been loaded yet. You would use the .on() method.. for example..
$('#divId).on('click', …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.