Page 1 of 1

How do I make a button visible with javascript?

Posted: Mon Apr 23, 2012 11:46 pm
by jerry4357388

I can't see in the API where to make a button visible. I tried Tiggr("buttonName").show() but it didn't work.


How do I make a button visible with javascript?

Posted: Tue Apr 24, 2012 1:01 am
by maxkatz

On page load:
code
Tiggr('b1').hide();
/code

on button click:
code
Tiggr('b1').show();
/code

If you use Visible property, you need to select the button and then get the parent
code
Tiggr('b1').parent().show();
/code

We'll fix the selection so you don't need to get the parent().