firefox and ie cannot excute ajax : I am using jquery v.3.3 with this ajax script :

    <script type="text/javascript">
    $(document).ready(function(){
    $("form").submit(function(){
      $.ajax({
      url: 'msgs.php',
      type: 'POST',
     data: { newmsgs:$('#mess').val(),mesuser:$('#mesuser').val()} ,
      });
      });
     </script>
it is work with chrome but didnt work with irefox and IE