Please try the following instead - it should work fine:
$(function() {
$("#piGal .thumbs img").click(function() {
$("#piGal a img[src="+this.src+"]").parent().click();
});
});
For some reason your code is throwing an error:
$(function() {
$("#piGal .thumbs img").click(function() {
$("#piGal a img[src="+this.src+"]").parent().trigger('click');
});
});
- arguments: Array[1]
- get message: function () { [native code] }
- get stack: function () { [native code] }
- set message: function () { [native code] }
- set stack: function () { [native code] }
- type: "unexpected_token"
- __proto__: Error
- arguments: undefined
- constructor: function SyntaxError() { [native code] }
- name: "SyntaxError"
- stack: undefined
- type: undefined
- __proto__: d