Partial jQuery not working (keyup, preventDefault)

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(‘’);
}
});

Please provide your website url

4 Likes

Please find my site link here

All I see is a chat script, which InfinityFree doesnt allow

4 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.