Coxy ha scritto:
How do I create a new tag with jquery?
I tried something like this:
link = $('a').attr({
class : 'logoLink',
target : '_blank',
href : 'http://www.someurl.com/'
});
And then appended it to another image, but this added every link that
already existed on the page.
Do you have an image and you want to add a link to the image? then do:
$('#myimgid').wrap('<a class="logoLink" target="_blank"
href="http://www.someurl.com/"></a>');
Bye
--
gianiaz.net - web solutions
via piedo, 58 - 23020 tresivio (so) - italy
+39 347 7196482