Blog Archive

ExtJs update DIV content with HTML data

Updating the content of a DIV tag or anything else is really easy in ExtJs. All you need is get a reference to the element by its Id using the method and then just use the update method. Lets say you have div tag in your HTML content say "myExample"

<div id="myExample">

Now use the method as show here

var myHtml = "Updating some content using <b>ExtJs</b>";'myExample').update(myHtml);

1 comment :

  1. this is a good suggestion. worked for me