Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Get the ID using javascript/jquery Re: Get the ID using javascript/jquery

#59411

Your process.php needs to take the id as input and generate the HTML for the information div.

Then your success() function needs to take a parameter that will contain the HTML outputted from process.php.

Code:
//div fades in when operation is a success
// data contains the html output of process.php
success: function(data){
// fade out, then replace the contents of the div then fade in
$(“#info_inner”).fadeOut(“fast”).html(data).fadeIn(“fast”);
}