var json = JSON.stringify({
'comments_text':comment,
'comments_post_id':1,
'comments_post': post});
post.comments_post_id = 1;
var json = JSON.stringify({
'comments_text':comment,
'comments_post': post});
function foo()
{
this.function baz(){
}
this.function bar()
{
$.ajax({
success: (html) =>
{
this.baz(); //<-- Как вызвать
}
});
}
}
$(".deletable").bind("DOMSubtreeModified", function() {
alert('DOMTree changed');
})
$("button").click(function (e) {
text = $(e.target).closest(".panel").find(".panel-heading").text();
alert(text);
});
button {
width: 140px;
height: 140px;
}
table tr:hover select {
background: white;
transition: .2s linear;
color: black;
}