I have deployed a website with php and jquery Ajax
the Ajax part is working perfectly fine. in fact the website works.
however, a couple functions i have included were not actually executed somehow.
the ones not performing their tasks:
$("form").submit(function(event){
event.preventDefault();
var xxx = $("#bar").val();
$("#anyc").load("file.php",{
user: user,
message: xxx
});
});
and
$(“#bar”).keyup(function(e){
if(e.which == 13){
$(“form”).submit();
$(“#bar”).val(‘’);
}
});