add all files
This commit is contained in:
15
static/js/zametki.js
Normal file
15
static/js/zametki.js
Normal file
@@ -0,0 +1,15 @@
|
||||
$( document ).ready(function() {
|
||||
$(".reshbtn").click(function(){
|
||||
var zmid = this.id
|
||||
$.ajax({
|
||||
url: "/zamrm",
|
||||
type: 'get',
|
||||
contentType: 'application/json',
|
||||
dataType: 'json',
|
||||
data: {'zmid':zmid},
|
||||
})
|
||||
var parent = document.getElementById('zambody')
|
||||
var child = document.getElementById(zmid)
|
||||
parent.removeChild(child)
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user