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

Email logic not working
I would like to send an email using the php email() function then if it does execute i.e sends i wou

Email with Attachments in PHP
Hi Friends

How to send email in PHP with attachment.
I know simple mail can be sent with

Creating Images from images in PHP
Okay well I am trying to make a 'dynamic' calender image with PHP.

I have images like this:

displaying unknown amount of results
I am reading a directory and getting a list of folders in the directory, I want to display the folde

Transform value 0 in no and 1 in yes help needed
Hello,
I have this in the table: "value" type int 0 to represent false and 1 to represe

form variables from database help.
Hi all,

I would like to have a form that gives you options based on the results of an mysql q

OPINIONS WANTED
This is my login page code, and I want your opinion on it please!

Code: // Login ~ CHECKS

MySQL noob question
hi guys

I have a simple mysql table set up, along the lines of

Col 1 - Col 2 - Date_l

PHP Mysql Staff Induction System
Hi there, I'm pretty new to PHP and Mysql so could really do with being pointed in the right directi

Stumped by Third Day of Month problem
I am trying to build an algorithm that will essentially do this:
Code: [Select]$this_month = Oct

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