i how get the form's elements from Java script?
thanks
i have a page that it verify if the password and confirm password user's, it are matches.
sorry my english
and i have this script tag into jsf page:
<ui:script binding="#{newPage.script1}" id="script1" url="chequeador.js"/>
and the file chequeador.js contain:
function chequeador(form) {
var password = form["form1:clave"].value;
var passwordConfirm = form["form1:claveConf"].value;
if (password == passwordConfirm)
form.submit();
else
alert("Password and password confirm fields don't match");
}
but this not work. i find my error
thanks for you help.

