Код: Выделить всё
$(document).ready(function(){
$("#messageArea").on("submit", function(event){
var rawText = $("#text").val();
$("#text").val("");
$("#messageForm").append(rawText + " || ");
$.ajax({
cahce:false,
data:{
message:rawText,
},
type:"POST",
url:"/getChat",
}).done(function(data) {
var botHTML = data
$("#messageForm").append($.parseHTML(botHTML));
$('
Подробнее здесь: [url]https://stackoverflow.com/questions/79374173/using-flask-jquery-when-attempting-to-set-src-using-attr-call-only-works-som[/url]
Мобильная версия