7. Disable the button 1


#1

Hi,

I was just wondering why adding the class 'disabled' disables the post button. Not sure if I given enough information about this.

Thanks


#2

@tyoungg,

why is class-name -disabled- set in the =main= function
http://www.codecademy.com/forum_questions/555071a551b8870e9a00056e

####### status update

class-name disabled....

Where is style for that class?
Styling is an Attribute of an Element.
In the style.css-file
I was wondering where is disabled class.

The "disabled" class-name is -set- by you via the Javascript app.js
as an additional class Attribute of
the a-Element, which you identify by the class-name "btn"

The sole purpose of the "disabled" class-name
is to have an indication, if the
identified by the class-name "status-box"
has 1 or more characters -set-

If the a-Element has the _"disabled" class-name as a class Attribute set,
the Button-Functionality is Blocked.
( you use the Bootstrap-functionality )

Reference::

http://getbootstrap.com/javascript/
+ bootstrap
http://getbootstrap.com/getting-started/
http://getbootstrap.com/2.3.2/components.html
We now have .col-xs (phones), .col-sm (tablets), .col-md (desktops), and .col-lg (large desktops).