Topic: Error or Success Messages
<div class="md-form">
<input type="text" name="username" class="form-control invalid text" id="frm-form-username">
<label data-error="Not valid" for="frm-form-username">Username</label>
</div>
I do same thing for textarea:
<div class="md-form">
<textarea name="about" class="md-textarea invalid" id="frm-form-about"></textarea>
<label data-error="Not valid" for="frm-form-about">About</label>
</div>
But now red text "Not valid" shows above input red line insead of below red line. So it is in the midle of textarea.
And for checkbox and radio it does not work at all:
<div class="md-form">
<input type="checkbox" name="agree" class="form-control invalid" id="frm-form-agree">
<label data-error="Not valid" for="frm-form-agree">Agree</label>
</div>
There is no red text "Not valid". Checkbox looks valid.
What am I doing wrong? Marta Szymanska staff pro premium answered 8 years ago
textarea.md-textarea.invalid+label:after {
width: 100px;
top: 115px;
}
and about checkbox, How do you think 'not valid' checkbox should looks like? Because checkbox can't be 'not valid', it is checked or not.
Best,
Marta
Barvoj answered 8 years ago
Bartłomiej Malanowski staff pro premium answered 8 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Free
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No