Page 1 of 1
how to hide and show button?
Posted: Sat Apr 20, 2013 8:02 pm
by Adriano Di Paulo
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();
}
how to hide and show button?
Posted: Sat Apr 20, 2013 8:10 pm
by Alena Prykhodko
Hello Adriano!
Please provide more details. Could you send print screen?
Do you use some tutorial?
how to hide and show button?
Posted: Sat Apr 20, 2013 8:52 pm
by Adriano Di Paulo
How can I hide the button "New Account"?
how to hide and show button?
Posted: Sat Apr 20, 2013 10:37 pm
by Illya Stepanov
You want to remove it completely or hide it?
how to hide and show button?
Posted: Sat Apr 20, 2013 11:41 pm
by Illya Stepanov
Sorry Adriano, but it's unclear on what event you put your JS code? And why using LocalStorage? You already put some values in it to check if it's null.
how to hide and show button?
Posted: Mon Apr 22, 2013 5:55 am
by Maryna Brodina
Hello! Try the following code:
codevar firstLogin = localStorage.getItem('firstLogin');
if (firstLogin == "0") {
Appery('btnNewAccount').hide();
} else {
Appery('btnNewAccount').show();
}/code