How can I check whether password match or not in primefaces + javascript?
I have used like this
function checkPass(){
var pass1 = document.getElementById('password');
var pass2 = document.getElementById('confirmPassword');
lert(pass2);
}
but getting null value! In primefaces I called like onkeyup="checkPass(); return false;"
To get the string value we have to use following code in JSF Primefaces like,