How To How To Add Radiobuttons When Clicking On Yii Button In

i want to add 2 dropdownlist with DB value when i clicked on button(Yii button syntax).

this thing i done by using html and javascript but how to do in yii i don’t have any idea.

this is my html and javascript code for normal(Without yii).



<script type=‘text/javascript’>

function generateradio()


var d=document.getElementById(&quot;rad&quot;);

d.innerHTML+=&quot;&lt;p&gt;&lt;label&gt;Telefono :&lt;/label&gt;&lt;input type='select' name='telephone'&gt;&lt;/p&gt;&quot;;





<p>click on Add button </p>

<div id="rad"></div>

<p><input type="button" value="Add" onclick="generateradio()"/></p>



i want to do same thing in yii framework using yii buttons and radiobuttons syntax.

Pelase suggest me how to do????