Syntax:
[DivID].html([value]);
Where [DivID] is the id of the div and [value] is the value or content you want to put on the div. The [value] accepts html tag.
In my example below, i use drop-down menu to dynamically change the value of the div tag.
What is your favorite color?
Blue
Red
Violet
White
Your favorite color is:
[blank]
Result:L.






1 comments:
salam kenal bos. lagi jalan jalan pagi nih
Post a Comment