I'd like to use a simple JavaScript anti-spam scheme and found this one that requires the user to add two numbers.
Problem is, I'm no JavaScript expert and don't know how to have the jQuery plug-in go on validating the form once the user has answered the math question successfully:
<html>
<head>
<script type="text/javascript">
var a = Math.ceil(Math.random() * 10);
var b = Math.ceil(Math.random() * 10);
var c = a + b
function DrawBotBoot()
{
document.write("Résultat de "+ a + " + " + b +"? ");
I need a simple way to validate a form, basically just checking that the user typed something. Several articles on the web recommended the jQuery Validation plugin, so I just gave it a try.
It seems to work fine, but 1) is it localized and 2) how will it choose the right language?
I assume it's based on how the browser is configured. Currently, I'm running Google Chrome in English: For testing purposes, how can I reconfigure it to check that the jQuery Validation plugin is able to show the error messages ("This field is required", "Please enter a valid email address", etc.) in French? Is this done through Advanced Settings > Languages?
FWIW, the web site only needs to support French and English.
... which works fine with standard browser widgets but doesn't work with jQuery's DatePicker: After filling its input box via the calendar, the validator just stops instead of moving on the rest of the items in the form.
Can someone recommend a good, light, free form validator?
I'm only getting started with jQuery, so it's a newbie question.
I'd like to use the DatePicker widget to let the user type arrival/departure dates.
By default, both the arrival and departure dates are set to today's date: To make it easier, I'd like the departure date to be set to D+1 automatically.
I have very shallow knowledge of JavaScript, and need to provide a calendar to let users choose a date.
jQuery DatePicker looks nice, but I couldn't figure out how to simplify the sample to localize the date and have it work with FR, and combine this with the sample that displays an icon to trigger the calendar:
I'm a total JS/jQuery newbie, and I'm having a problem using jQuery's load() to POST data to a remote PHP script and rewrite a DIV with whatever the server sent back.
Using a proxy in between, I can see that the JS script isn't sending anything, so I guess there's something wrong in the JS code I send to the browser: