After retrieving a div using jquery's post method on my page, I am encountering an issue when attempting to apply CSS to the divs. Strangely enough, applying CSS with jquery to divs that are already present on the page works perfectly fine.
Javascript code:
$('#next').click(function() {
$.post('getquestions.php', {number: number}, function(result){
$('#questionArea').html(result);
});
$('.quest').css( "border", "13px solid red" ); //this line does not execute as expected
});
The following is what gets echoed out from getquestions.php (which is functioning correctly):
echo "<div id='question" . $question_number . "' class='quest'>";