Page 1 of 1

Disabling buttons in the navbar

Posted: Sat Feb 02, 2013 7:20 pm
by New Mobile Guy

I created a navbar element with 4 buttons. 2 of the buttons are Previous/Next buttons, and I need to disable them when I get to the beginning or end of the list. I call javascript like the one below but nothing seems to do anything. Any ideas?

var nextButton = Tiggr('Next');
nextButton.attr('disabled', 'true');
nextButton.attr('enabled', 'false');
nextButton.attr('visible', 'false');


Disabling buttons in the navbar

Posted: Sat Feb 02, 2013 10:04 pm
by maxkatz

I'm not sure if that will work... you might also need to update styles. There are a number of possible ways to do it: https://www.google.com/search?q=jquer....

Use Google Chrome Dev. Tools to inspect the code and check exactly what element you have selected and setting properties on.