Hello,

val() is for the form element ( input, select ), to get/set the value

html() is what i use to add small html inside an element.
I use the append method when the html to add is huge.

i have never used the text() method. I understand that the text() method is
like a php:strip_tags function for getting the value and php:html_entities
for setting.

Pierre

Fred Allen  - "An associate producer is the only guy in Hollywood who will
associate with a producer."

2008/11/19 ginko100 <[EMAIL PROTECTED]>

>
> Hello,
>
> what's the difference between:
> html();
> val();
> text();
>
> what's the best way to add html to a div??
>
> thanks.
>

Reply via email to