Yii Framework Forum: onSelect Data Update AJAX Form - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

onSelect Data Update AJAX Form Rate Topic: -----

#1 User is offline   giantdut 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 18
  • Joined: 24-April 12
  • Location:Jakarta, Indonesia

Posted 20 May 2012 - 11:12 PM

Halo,

Mau tanya gimana yah cara buat ajax update pada saat kita check -> checkbox

<table>
		<thead>
			<tr>
				<th>#</th>
				<th>Title</th>
			</tr>
		</thead>
		<tbody>
	<?php
		$songsData = SongStorage::model();
		
		foreach ($songsData->findAll() as $data) {
			echo "<tr><td><input type='checkbox' name='addsongs[]' /></td><td>". $data->title ."</td></tr>";
		};
	?>
		</tbody>
	</table>


Ini juga tablenya masih pakai HTML sorry maklum newbie..

name='addsongs[]' tadinya prepare untuk multiple input, tapi mumet juga karena selalu error
Try to explore my intellectual capital
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users