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

Multidimensional $_POST
Hello

How to get a single array from array of array (2 - dimension).
For example I have a

$_GET problem
Hi all,

Have a bit of a problem with a little piece of code, I am not sure if this should be

Auto install
Hi I have a directory lets say "apps" that I then have more folders ie "email",

How do I create a 2D game "camera" to follow player?
In J2ME programming I'm targeting MIDP 2.0 devices.

I'm using gamecanvas and I was thinking t

Storing the referrer in session... problems with tabs
Hello All

I am currently working on an ERP project based on the MVC methodology, when a user

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

Problem in OnClientClick and OnClick sync
Hi,Strange and irritating problem: I have below button declaration in markup of the aspx page:

Sequencing or queuing parallel process
Scenario is as follows
There is one parent process say P1 and 4 child processes say A B C D

onclick problem
I have <input type="text" name="message">
<a href=page2.

Code Review - SQL and Insertion Attacks (Warning: Not for Newbs)
Hey guys,

Its been a while, I know. Use to love coming here to answer peoples questions, but

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