View previous topic :: View next topic
Author
Message
fanatic Joined: 02 Nov 2004 Posts: 81 Location: vienna
Posted: 25.11.2010 11:31 Post subject: jQuery pitanjce - append
Recimo da imam div kontejner
<div id="#test">
<p>Lorem Ipsum</p>
</div>
i zelim dodati <br />, ali nakon zatvarajuceg div-a, ovako:
<div id="#test">
<p>Lorem Ipsum</p>
</div>
<br />
Kako?
Back to top
r3dsc0rpi0n Joined: 20 Apr 2005 Posts: 354 Location: Zagreb
Posted: 25.11.2010 13:07 Post subject:
Code: $('<br />').insertAfter('#test');
http://jqapi.com/#p=insertAfter
_________________ ::: Fortis est, qui se vincit ! ::::
Back to top
fanatic Joined: 02 Nov 2004 Posts: 81 Location: vienna
Posted: 25.11.2010 13:46 Post subject:
thanks, sto sam trazio je u stvari:
Code: $('#test').after('<br/>')
Nice day
Back to top
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
Powered by phpBB © 2001, 2005 phpBB Group