I've got one issue I haven't been able to figure out I've tried a couple different things to attempt to alleviate the problem that I found on stackoverflow, but they are not working for me.
This is my ajax code right now
$.ajax({
type: 'POST',
url: 'php/getreviews.php',
data: {},
success: function(data) {
alert(data);
$('#renow').val( $(data).find('#now').val() );
$('#rehour').val( $(data).find('#hour').val() );
$('#reday').val( $(data).find('#day').val() );
}
});
the getreviews.php page has 3 divs that it returns.. I would just load all three but they are in seperate parts of the page so I'm needing to load a single div from the return to a specific div's
I have also tried these ways
$('#renow').val( $(data).html().find('#now').val() );
$('#renow').html( $(data).find('#now').val() );
I do get the divs printed in the alert so I know it's returning correctly...
UPDATE: If I use $('#renow').html( $(data).html() ); I get the first div element inserted
datacontains?