You need to use an id selector:
//show
$('#passwordsNoMatchRegister').show();
//hide
$('#passwordsNoMatchRegister').hide();
# is an id selector and passwordsNoMatchRegister is the id of the div.
You need to use an id selector:
//show
$('#passwordsNoMatchRegister').show();
//hide
$('#passwordsNoMatchRegister').hide();
# is an id selector and passwordsNoMatchRegister is the id of the div.