i wanted to know whether or not,there is a way by which we can extract HTML contents of a <div> using jQuery,given that the HTML content is not present but is extracted from another file such as a PHP file,dynamically
$("#layer").html() just gives a null value,as originally the file has no HTML inside <div id="layer">
thanks!
I would say, use the either the
successorcompletecallback functions of the$.ajax()function, everything inside these callbacks will be executed as soon as the$.ajax()function has completely loaded successfully.Here: jQuery Ajax Look at the Callback Functions section.