Dynamic Form

I want go get selected value on each row… what can i do with controller and view javascript… i am very newbie here… thx!!!..

<div style="height:440px;overflow-x: hidden;" id="berubah">

	&lt;?php //&#036;form=&#036;this-&gt;beginWidget('CActiveForm', array(


	//'id'=&gt;'task-form',


	//'enableAjaxValidation'=&gt;true,


//)); ?&gt;


		&lt;div style=&quot;float:left;width:90%&quot; id=&quot;berubah1&quot;&gt;


		&lt;?php //foreach (&#036;modeltask as &#036;i=&gt;&#036;modeltask){ ?&gt;


			&lt;div style=&quot;float:left;width:15%&quot;&gt;


				&lt;?php &#036;this-&gt;widget('bootstrap.widgets.TbButton', array(


				'type'=&gt;'action', 


				'size'=&gt;'mini', 


				'icon'=&gt;'remove white',


				)); ?&gt;


				&lt;?php &#036;this-&gt;widget('bootstrap.widgets.TbButton', array(


				'type'=&gt;'action', 


				'size'=&gt;'mini', 


				'icon'=&gt;'ok',


				)); ?&gt;


			&lt;/div&gt;


			&lt;div style=&quot;float:right;width:85%&quot;&gt;


				&lt;input type=&quot;text&quot; style=&quot;width:100%;border: 0px solid #000000;&quot; name=&quot;fname&quot;&gt;&lt;/br&gt;


				&lt;?php //echo &#036;form-&gt;textArea(&#036;modeltask,'[&#036;i]name_task',array('rows'=&gt;1, 'cols'=&gt;50, 'class'=&gt;'span8')); ?&gt;


			&lt;/div&gt;


		&lt;/div&gt;


		&lt;div style=&quot;float:right;width:5%&quot; id=&quot;berubah2&quot;&gt;


			&lt;?php &#036;this-&gt;widget('bootstrap.widgets.TbButton', array(


				'label'=&gt;'&gt;',


				'type'=&gt;'action', 


				'size'=&gt;'mini',		


			)); ?&gt;


		&lt;/br&gt;


		&lt;/div&gt;


		&lt;?php //&#036;this-&gt;endWidget(); ?&gt;


	&lt;/div&gt;