New Mobile Guy
Posts: 0
Joined: Tue Jan 29, 2013 9:09 pm

Disabling buttons in the navbar

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');

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Disabling buttons in the navbar

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.

Return to “Issues”