Visa ett inlägg
Oläst 2009-12-23, 11:22 #4
sandstream sandstream är inte uppkopplad
Medlem
 
Reg.datum: May 2008
Inlägg: 130
sandstream sandstream är inte uppkopplad
Medlem
 
Reg.datum: May 2008
Inlägg: 130
Tyvärr så fungerade det inte.
var form = jqForm[0]; måste vara med eftersom det är där variablerna ligger.

Så här skriver de om pluginen i ett exempel:
// jqForm is a jQuery object which wraps the form DOM element
//
// To validate, we can access the DOM elements directly and return true
// only if the values of both the username and password fields evaluate
// to true

var form = jqForm[0];
if (!form.username.value || !form.password.value) {
alert('Please enter a value for both Username and Password');
return false;
}
alert('Both fields contain values.');
sandstream är inte uppkopplad   Svara med citatSvara med citat