jquery validation in codeIgniter


Posted on 16th Feb 2014 07:03 pm by admin

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;?>

No comments posted yet

Your Answer:

Login to answer
290 Like 12 Dislike
Previous forums Next forums
Other forums

Using loop to count number of entries
I'm writing a program that must ask user to type in numbers. After each entry, the program has to re

Get value from Select menu
Hi!

Have tried to find the solution on the web. Don't know if there is an easy one. A descrip

CHECK A STRING FOR ' " ' (DOUBLE QUOTES)
I am checking for delimiter (.!?) and if there is a " after a sentence then it should neglect a

Where do I put CRON code
So I've figured out alot about how to automatically run a php function. I can't figure out where to

phpmailer class & pop.gmail.com?
Code: <?php
$mail->IsSMTP();
$mail->Host = "pop.gmail.com";

Linkage between two scripts
Okay say I have this for a link in a script:

Code: <li><a href="#&q

Am i doing this wrong?
Im pulling from an Oracle database some info... one of which is a field count_pnums which is a NUMBE

How can i use [] tags instead of <> tags for profiles??
On my site im making ive made it so u can register, login and u have a profile which u can update..<

ORA-01017: invalid username/password; logon denied
Dear All,

I am facing problem in taken backup from db13 it comes up with the following l

Typedef struct vs just struct
Anyone know the rationale for using typedef for structs when a struct is itself a typedef? I have s

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash