how to hide and show button?

I'm trying to hide new account button..

var firstLogin = localStorage.getItem('firstLogin');
if(firstLogin == "0"){
Appery('btnNewAccount').hide();
Appery('btnNewAccount').parent().hide();
}else{
Appery('btnNewAccount').show();
Appery('btnNewAccount').parent().show();
}
1 person has
this question
+1
This topic is no longer open for comments or replies.