$('#recipe_comments').on('submit', function(e) {
e.preventDefault();
var text = $('.text').val();
var id = 123;
$.ajax({
type: "POST",
url: '/add_comment',
data: {
'id': id,
'text':text
},
success: function(param)
{
console.log(param);
},
error: function(msg){
console.log('error');
}
});
});
<link href="/css/style.css?version=1" rel="stylesheet">
<link href="/css/style.css?version=2" rel="stylesheet">