Hi, all...

Why am I getting this error:

missing ; before statement
var tour-info-div = '$('this').prev('.tour-info-div')' ; \n

from this code: ???

$(document).ready(function() {          
                        
   $('.update_button').click(function(){
                                        
      var formval          =  { tour_url: $('this').prev('.update_input').val() 
,
                                mls_number: 
$('this').prev('.tour-div-info').attr('id').val() } ;
      var tour-info-div =  '$('this').prev('.tour-info-div')' ;
      var update-div       =  '$('this').prev('.update-div')' ;                 
        
                                                                        
      $.ajax({     cache: false,
                    type: "POST",
                     url:  
"../components/virtual_tours.cfc?method=update_tour&returnFormat=json",
                dataType: "json",
                    data: formval,
                 success: function(response) {
                                                                        
                          if (response.update == "Update Successful")
                             { $('update-div').hide();
                               $('tour-info-div').load("???").show(); }
                          else
                             { 
$('#unsuccessful').empty().fadeIn(500).append(response.update) };
                                                                                
        
                          }
        

      });
   });          
});     

Reply via email to