So I have this jQuery script but when you click the button it doesn't go along with what its supposed to.
I'm using the same script on a different button and it works.
Cant seem to find the issue D:
jQuery Script:
<script type="text/javascript">
$(document).ready(function(){
$("#stop").click(function() {
var host = $("host").val();
if(host != ""){
$("#bootres").html("<p class='box'><img src='http://urgentbooter.com/img/ajax-loader.gif' border='0' alt='' /> Stopping attack...</p>");
$.post("index.php?action=boot",{host:host,port:port,time:time,method:"STOP",submit:"submit2"},function(data){
} else {
alert("The host field must contain the IP to the attack you want to stop!");
$("#host").focus();
}
});
});
</script>
Button Code:
<button type="button" id="stop" class="button red">Stop Attacks</button>
By the way the other button it works for is nearly the same code and its on the same page.
Let me know if more information is needed!