Topic: Material Design Textbox Misaligned

Rushman1 free asked 6 years ago


I have an issue with using JavaScript (jQuery) to create new form-controls.  It appears that if I have text that needs to go into a textbox / textarea and I am using md-form around it, the label sits on top of the text until the textbox is clicked then the label goes up to where it is supposed to be.  How can I fix this? Thanks, Tim

Jakub Mandra staff answered 6 years ago


Hello, Label goes up when input is active. So if you want to put some initial value inside, you mus also add property 'active'.   Regards, Jakub

Rushman1 free commented 6 years ago

Thank you Jakub! That worked perfectly.. I kept looking at the textbox instead of the label. ;-) Tim


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: Other
  • MDB Version: -
  • Device: Laptop
  • Browser: Chrome 68.0.3440.106
  • OS: Windows 7 Pro
  • Provided sample code: No
  • Provided link: No