try it like this
$('#mydiv').append('<p><img src=\"a/b/image.jpg\" /></p>');On Jul 8, 12:41 pm, rinse_my_phonebook <[email protected]> wrote: > When I call > $('#mydiv').append('<p><img src="a/b/image.jpg" /></p>'); > > I get > <div id="mydiv"> > <p><img src="http://localhost:53072/pathtocurrentpage/a/b/ > image.jpg" /> </p> > </div> > > Which is not what I want. > > Can anyone tell me why I get this or even how I can stop jquery from > changing my src attribute? > > Thanks in advance.

