Modifying HTML Elements.
3 posts Page 1 of 1
Modifying HTML Elements.I know you can create elements with .createElement/.appendChild, and that you can delete them with .removeChild, but if I wanted to edit a text node what would it look like? Would I have to delete the old node and make a new one?
- Posts: 2
- Joined: Thu Jun 28, 2012 4:27 am
Re: Modifying HTML Elements.I suppose so, just delete paragraph and add text input with JQuery animations, maybe...
Coins. Profile. Games. Chat. Fun.
Check it out at http://www.coinawards.net63.net/
Re: Modifying HTML Elements.no you just need to replace inner html of the element :)
$("div").html("<span class='red'>Hello <b>Again</b></span>");
Page 1 of 1