Блог

<script type="text/javascript" src="https://code.jquery.com/jquery-3.1.0.js"></script> <input type="hidden" id="a" value="1"> <input type="hidden" id="b" value="2"> <button style="border:none; box-shadow: none; outline:none;" class="bonusbutton" id="submit">111111111</button> <div id="block"></div> <script> $(document).ready(function(){ $("#submit").click(function(){ var fnumb = $("#a").val(); var snumb = $("#b").val(); $.post('../server.php', {a:fnumb,b:snumb}, function(data){ $("#block").text(data); }); }); }); </script>