Menci
7 years ago
11 changed files with 28 additions and 19 deletions
@ -0,0 +1,13 @@
|
||||
$(function () { |
||||
$('a[href-post]').click(function (e) { |
||||
e.preventDefault(); |
||||
|
||||
var form = document.createElement('form'); |
||||
form.style.display = 'none'; |
||||
form.method = 'post'; |
||||
form.action = $(this).attr('href-post'); |
||||
form.target = '_self'; |
||||
document.body.appendChild(form); |
||||
form.submit(); |
||||
}); |
||||
}); |
Loading…
Reference in new issue