Jump to content

Uncaught SyntaxError: Unexpected token ;


Nass12

Recommended Posts

Hi, new to this forum and got an issue here:

I am getting a console error of a syntax error from the browser (chrome) console:

var dataString='lookupId='+<?php echo $_GET['lookupId']; ?>; //Uncaught SyntaxError: Unexpected token ;
   var dataPlusLookID = dataString+lookId;
        var country_dest_id="";
        $.ajax({
            type : 'GET',
            url : 'https://www.example.co.uk/files/viator/ajax_statelist_left.php',
            data : dataString,
            dataType : 'json',
            success : function(data) {
                $("#currency_code").val(data.currency_code);
                $("#country_name").val(data.country_name_without_design);
                $("#country_dest_id").val(data.country_dest_id);
                country_dest_id=data.country_dest_id;
            }
        });

        function searchadventurelist(path){
            location.href=path+'&country_dest_id='+country_dest_id+'&lookupId=<?php echo $lookupId;?>';
        } 

 

 

Appreciate the help

 

 

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.