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

Problem with creating FI documents
Hi, Experts!

when i create Fi doc. with standart transaction, i ve been had such problem

Something Non-Traditional. Can we solve?
I have an idea for an application here. It's mostly flash, but it couldn't work without a somewhat n

Sessions work for me and not others?
I'm having a bit of bad luck with sessions. In the past they have worked fine for me, but this time

Load file in PHP
I have 2 files. The first is a PHP generated XML file that's dependent by 2 inputs. The second is a

How to add functionality to a simple php calender?
Hello everyone,

I have just finished creating a simple php calander. Can someone point

List/Menu Box
On an edit page when you want something to select what a user has previously selected from the datab

TemplatePower & AJAX
Hi all,



I'm currently implementing some AJAX features in my PHP-framework (which is b

How can you detect variable string in a massive string?
Ok guys, i need some help with this one.

I am going to be getting a large string, like 10-20

php global variable
how can we create global variable so we can use its value in any form.. Please give example to

Procedure with variable number of columns
Hi, I have a procedure that looks like this:

PROCEDURE PROC(p_cursor OUT sys_refcurso

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