1.

How we can set the html contents of an element in jQuery?

Answer»

<P>The HTML() method is utilized to set CONTENT. It overwrites the whole content for the matched elements.

Example

$('#IDNAME').html('&LT;p>Best Interview Question</p>');



Discussion

No Comment Found