Я пытаюсь отправить запрос GET, как только нажата кнопка. Поскольку я весьма неопытен с HTML и JQuery/Ajax, я немного смущен тем, как это сделать. Мой код заключается в следующем < /p>
Reset
< /code>
$("Reset").ready(function(){
$( "#Reset" ).click(function(){});
$.get( "https://wt.ops/reset", function( data ) {
$( ".result" ).html( data );
alert( "Load was performed." );
})});
< /code>
Currently what it's doing is that it just loads the JQuery scripts automatically when the page is reloaded. But when I click the button, it does nothing.
Подробнее здесь: https://stackoverflow.com/questions/708 ... is-clicked