missing name after . operator error needs fixing
<p>I am getting this error on the error console and can't seem to figure it out, I tried taking out the quotes, moving them around but still can't solve the error which is : missing name after . operator. How can this error be fixed?</p>

<pre><code>  var counter = 0;
      counter++;

result = '&lt;span class="imagemsg'+counter+'"&gt;The file was uploaded successfully!&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;'; 

...

    jQuery.ajax("deleteimage.php?imagefilename=" + image_file_name)
      .done(function(data) {
        $(".imagemsg".counter).html(data);
       });
</code></pre>
