Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 140611

Uncaught SyntaxError: missing ) after argument list even when code is correct [closed]

$
0
0

Iam getting the above error. I have checked my syntax. There is nothing seems to be missing in the code.

1  <script language="javascript" type="text/javascript">
   2       $(document).ready(function(){
   3       
   4       $('#submit').on('click',function(){

   5      var from_date = $('#from_date').val();
   6     var to_date = $('#to_date').val();
   7      $.ajax({
   8     type:'POST',
   9     url:'date_based_report_action.php',
   10    data:'from_date='+from_date+'&to_date='+to_date,
   11    success:function(html){
   12    alert(html);
   13   $('#tabledata').html(html);  
   14   }
   15   });
   16   }
   17   }); 
   18   </script>

The error shows in Line no.16 when I check the console.


Viewing all articles
Browse latest Browse all 140611

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>