Hi Can you show more code? I think showing an alert would be a good idea.
On Sep 22, 12:38 am, suntrop <[EMAIL PROTECTED]> wrote: > HI there, > > I want to insert two variables into the selector and an attribute. But > it doesn't work. > > $('h1 a#' + this.id + ' img').attr({src : "images/" + msg + ".png"}); > > I looked through various tutorials but couldn't find an answer to > this. > > The first variable comes from the object's (<a> element) id and the > seccond is a response from an php script. > > Can somebody please help me?