i use recaptcha
Recaptcha.create("xxx", "recaptcha", {
theme: 'clean',
tabindex: 0,
callback: $("#id").focus
});
i want to use callback to focus some field, but it doesn’t work, only callback: f works
function f() {
$("#FIO").focus();
}
what is the problem?
The callback needs to be a function. What you have attempts to execute the $() function and reference the focus method of it. That won’t work. Try this.