This question might sound subjective but I really do need to make a choise and in order for me to do that, I need some experienced voices.
Is there a resource, link or opinion that describes when and considering what issues to use the jquery’s html(val), text(val) and append(content) for injecting content into an element?
are these comperable? or they are all designed for separate tasks?
regards,
kem
Well, html(val) replaces the html content, text(val) inserts text (not tags) always while append(val) appends html content to the existing html content.
They are different features html(val) being the most powerfull.