» Home » validate » Page 1
PHP PEAR Validate Package - Fatal error: Class 'Validate' not found
by Gunbuster in Programming Languages

This is the error I am receiving:

Fatal error: Class 'Validate' not found in C:xampphtdocsfinal_projectvalidate.php on line 5

And here is my PHP code:

require_once 'Validate.php';
foreach($_POST as $name => $value)
$valid = Validate::string($value);

I do not underst

jQuery validate doesn't validate an input on keyup until it has lost focus once
by techthumb in Web Design

I have a form with validation using jQuery validation. This works perfectly however, my form always contains default values:

<input type="text" value="0" name="myname" class="required number error">

When a user first changes the values in the input boxes, no validation occurs until the input loses focus. After this first time any keyup / change event i

How to properly validate Twitter's Bootstrap form placed on several tabs with jQuery Validate?
by MikeT in Web Design

I have one form located on several Twitter's Bootstrap tabs:

<form id="personal-data" class="form-horizontal">
<div class="tabbable">
<ul id="tab" class="nav nav-tabs">
<li class="active"><a href="#home" data-toggle="tab">Home</a></li>
<li class=""><a href="#profile" data-toggle="tab">Prof

jQuery validate(); Only validate on click of one type of submit button
by Silverforce11 in Web Design

I have a quite perflexing problem that I have researched and come up blank;

I have a form, with the jQuery bassistance.de's validate() plugin (http://docs.jquery.com/Plugins/Validation).

Does the job on submit perfectly, however; I two types of submit button.

One submits the form as usual, triggering my back-end validation and return errors o

Extending Jquery validate to show/hide div or clear div after validate is ran
by Cogman in Programming Languages

To clarify, how can run a custom function right before jquery's validation plugin runs its validate function (Which is what looks at all the fields and shows the error message)?

Right now i have all of my errors outputting to a div. Id like to catch the validate event and clear the div right before its ran of my old errors. Then id like to show/hide that div based on if it has any l

How to validate special character from the textbox without using Validate plugin on jquery
by Janne Lammi in Programming Languages

How to validate special characters in a textbox without using Validate plugin on JQuery

jQuery validate plugin validate inputs with similar names?
by dante in Web Design

I am using jQuery validate to check my form before submitting. In my HTML, I have inputs with similar names, ids. I am wondering how to validate inputs with similar names without writing out one by one (something like jQuery select elements with similar names)?

<form id="form1">
<tr><th>Input 1:</th><td><input typ

How can I fix old javascript to validate an international phone number with jQuery Validate?
by Icyflash in Javascript

I found a blog post which shows a method of creating validation for an international phone number. The code supplied is:

jQuery.validator.addMethod('intlphone', function(value) { return (value.match(/^((+)?[1-9]{1,2})?([-s.])?(((d{1,4}))|d{1,4})(([-s.])?[0-9]{1,12}){1,2}(s*(ext|x)s*.?:?s*([0-9]+))?$/)); }, 'Please enter a valid phone number');

I believe it us

How do you disabled a button while a form doesn't validate with jQuery validate?
by jaredsmiller in Coding

I was wondering how you can disable button (not submit) with jQuery while a form doesn't validate with jQuery validate, but when it does validate, enabled the button.

jQuery validate plugin - validate rule across several input fields
by Raghu in Coding

I have a bunch of fields like so created on the fly

<input type="text" name="coeff_a">
<input type="text" name="coeff_b">
<input type="text" name="coeff_c"> .. and so on ..

I want to validate the input to the above fields, and am using the jQuery validate plugin. I have set up a rule like so


Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .