Use the jquery validation plugin!
http://bassistance.de/jquery-plugins/jquery-plugin-validation/
On Feb 27, 9:27 pm, ml2009 wrote:
> I have just started using jQuery and wonder if you could help me
> please.
>
> I am working on a form which contains a field to enter multi-email
> addresses. How
});
> return returnVal;
>
> }
>
> On Feb 27, 9:04 am, James wrote:
>
> > Oops, I just read that you did try 'false'..
>
> > On Feb 27, 9:03 am, James wrote:
>
> > > I'm sorry, I mean 'async: false'! Try that.
try 'false'..
>
> On Feb 27, 9:03 am, James wrote:
>
> > I'm sorry, I mean 'async: false'! Try that. :)
>
> > On Feb 27, 8:54 am, Gelegrodan wrote:
>
> > > Hello!
> > > Thanks you your answer, but it seems like it didnt help!
&
t is not-true, so the if-statement
> fails). Then a few milliseconds later, your AJAX response has
> returned, but the code is way passed the if-statement by then already.
> Try adding the 'async: true' to the $.ajax() option. This tells the
> rest if your code to
Hello
I have the following code:
function pnrexists(a){
$.ajax({
url: '/inc/chkusr.php?q=p',
type: 'POST',
dataType: 'html',
data: {'pnr': a},
timeout: 2000,
success: function(data) {
Hello
I use the validation plugin and the following code:
submitHandler: function(form) {
$('#submit').attr("disabled", "true");
$.ajax({
type: 'POST',
url: 'submit.php'
"submitHandler CallbackDefault: default (native) form submit
Callback for handling the actual submit when the form is valid. Gets
the form as the only argmument. Replaces the default submit. The right
place to submit a form via Ajax after it validated.
Submits the form via Ajax when valid
t, but otherwise $("#cityplace").text(thereturnedcity);
>
> On Feb 23, 5:53 pm, Gelegrodan wrote:
>
> > Hello
> > I have two fields; zip and city, i validate zip with remote and it
> > checks against a list if the zip is valid, but i want it too:
> > check i
Hello
I have two fields; zip and city, i validate zip with remote and it
checks against a list if the zip is valid, but i want it too:
check if the zip is valid
return true if it is valid AND return the city of the zip and paste it
in the city-input...
How to?
Of couse i have a databas/array/list
Hello
I have two fields; zip and city, i validate zip with remote and it
checks against a list if the zip is valid, but i want it too:
check if the zip is valid
return true if it is valid AND return the city of the zip and paste it
in the city-input...
How to?
Of couse i have a databas/array/list
Hello
I have two fields; zip and city, i validate zip with remote and it
checks against a list if the zip is valid, but i want it too:
check if the zip is valid
return true if it is valid AND return the city of the zip and paste it
in the city-input...
How to?
of couse i have a databas/array/list
11 matches
Mail list logo