Jump to content

jquery validation in codeIgniter


tnyjos

Recommended Posts

hai i need to add client side validation to my fiels which are selected in a forloop.the fields are auto incremented according to count.i need to add validation for a selected fields only

my code is

<? $i=0;?>

<? foreach ($info as $link): ?>

 

<DIV><INPUT type="checkbox" name="check<?=$i?>"  onclick="show(this,<?=$i;?>);" id="check" ><a href="<? echo $link;?>"><? echo $link;?></a></DIV>

<p id="container<?=$i?>" style="display:none">

Enter Tag

<INPUT type="text" name="tag<?=$i?>" id="tag<?=$i?>"  class="required">

</p>

<INPUT type="hidden" name="url<?=$i?>" id="url<?=$i?>" value="<?=$link?>">

<?  $i++;?>

<? endforeach;?>

Link to comment
https://forums.phpfreaks.com/topic/181082-jquery-validation-in-codeigniter/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.