Я попытался создать список вопросов, которые извлекаются из таблицы базы данных.Я добавил код, чтобы увеличить размер шрифта для всех вопросов, но ничего не происходит.
Я добавил этот код: $("#elem").css("font-size", "20px");
, но он совсем не работает.
Как мнезаставить его работать?
Спасибо.
HTML-код: tbody id="questionList"
AJAX-код:
function ListQuestions()
{
$.ajax({
url:"Function.asp?action=getquestions",
type:'GET',
success: function(data){
$('#questionList').empty();
$('#questionList').append(data);
$('.rating').each(function(index,t){
//console.log(index,$(t).parent().parent().html());
$(t).append(AddControls(index+1));
});
$('#questionList').find('.comments').each(function(index,t){
//console.log(index,$(t).parent().parent().html());
$(t).append(AddTextBox(index+1));
$("#elem").css("font-size", "20px");
});
}
});
}