[eluser]tj[/eluser]
hai am new to codeigniter my requirement is i have a checkbox on clicking the checkbox a text box is shown and i need to add validation to this text box.my problem is all thes fields are in a foreach and increment according to the count help me guys
<? $i=0;?>
<? foreach ($info as $link): ?>
<DIV><INPUT type="checkbox" name="check<?=$i?>" ><a href="<?=$link;?>"><?=$link;?></a></DIV>
<p id="container<?=$i?>" style="display:none">
Enter Tag
<INPUT type="text" name="tag<?=$i?>" id="tag<?=$i?>">
</p>
<INPUT type="hidden" name="url<?=$i?>" id="url<?=$i?>" value="<?=$link?>">
<? $i++;?>
<? endforeach;?>