inside my html i got
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js" type="text/javascript"></script>
<script src="jquery.form.js" type="text/javascript"></script>
inside my jquery.form.js I got
$(document).ready(function(){
alert("test");
$("#btnFight").mouseup(function () {
alert("test");
$("#fight_status").html("Checking Oppoments...");
$.ajax({
url: "battle_action.php?action=fight",
global: false,
type: "POST",
data: $("#form1").serialize(),
dataType: "html",
success: function(msg){
$("#fight_status").html(msg);
},
error: function(msg) {
$("#fight_status").html(msg);
}
});
});
});
It shows no alerts.
problem fixed ;]