You're closing the "a" before the "img": ... class="removeitem" /> <img src="images/remove.gif"...
See the "/>" in the middle there. Karl Rudd On Mon, Jul 7, 2008 at 1:57 AM, paulp75 <[EMAIL PROTECTED]> wrote: > > The code which is created on the page is like this > <a href="jq-remove.php" id="Delete_<?php echo $thiscart- >>DisplayIndex; ?>" class="removeitem" /> <img src="images/remove.gif" > border="0" alt="remove" /> </a> > > note that the </a> is after the image. > > i call the page from this jquery query > > (".removeitem").livequery('click', function(){ > var removeidno = $(this).attr("id"); > $('#cartcontents').load("jq-remove.php", { removeid: removeidno } ); > return false; }); > > now for some reason when it is output to the browser it comes back as > <a href="linketc.php"></a><img src="images/remove.gif" border="0" > alt="remove" /> > > anyone know why this would be happening? > thanks >