Hi, I was looking for a solution using jQuery or changing the bootstrap twitter class so that the button does not execute its onclick action and does not disable it. However, the results of iv, found so far, did not work correctly and basically only showed the possibility of shutdown, but still performed correctly:
$("#previous").prop('disabled', true);
$("#next").prop('disabled', true);
The goal is to prevent tabs from switching when the tab index is too high or too low. Most other solutions seem to contain a huge amount of what Javascript would not seem to be necessary for a function that seems relatively simple.
For instance:
$("#previous").click(function() {
var me = $(this);
me.unbind( "click");
})
which should remove the associated function, however this also means reconnecting the event when the tab index increases. Is there a simpler solution to temporarily disable a button or simply prevent a default action from being performed without deleting an event or not displaying a button element?
Any help would be appreciated :)
D3181 source
share