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

a dificult string search
Hi I don't know a way around this. I want the user to input a password, but to make it a bit complca

ClientScript.RegisterClientScriptBlock Issue
This is what I haveview plaincopy to clipboardprint?Protected Sub posrback_Click(ByVal sender As Obj

Mail from PHP form not always ending up in my inbox?
Hi guys,

I'm a real newbie to PHP and have managed to put together a simple mail form that se

help with multi-update
Now sure how to ask this really....
10g database if that matters.

I have a customer

Email "$"
Hello!!

Any PHP guy with a bit of a knowledge in Flash ?

When I send a JPEG from flash

How to kill asynchronous postback / current postback?
Hi,here is my problem:I have a web site with many pages of which some may take time to process resul

Header is not working in IE
Hi ! header function is not working in IE but it works in FF, Safari, Chrome. any help please. :

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

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

grouping within a foreach?
hello all,

I currently have a list of products spit out from my db via a foreach loop. Right

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