Create component at runtime


#1

i have seen the sample where I can create a DIV at runtime.
How do I create a jqWidget at runtime, say, a button?
Or how the code would be for a common label?
In my code, a json is downloaded and depending on the number of items returned, I need to spawn (create at runtime) a certain number of items.

Thanks,

JD


#2

This blog post should get you started:

http://blog.nsbasic.com/2012/10/creating-runtime-buttons-bonus-a-single-event-for-all-your-buttons/


#3

I get it, thanks.Will create divs with the corresponding content.