How can I add a label and validation messages to a number in


Topic: How can I add a label and validation messages to a number input - default version?

belu pro asked 5 years ago

Expected behavior I would like to add a label to the default version of a number input. What I also need is a validation message. How can I do that? Thanks in advance! Actual behavior not like above Resources (screenshots, code snippets etc.)


Mateusz Łubianka staff commented 5 years ago

Hi @belu,

Do you mean something like that: https://mdbootstrap.com/snippets/jquery/mateusz-lubianka/1768115

Best,


belu pro commented 5 years ago

Hi,

no - I am looking for the styling next to this example - on this page: https://mdbootstrap.com/docs/jquery/forms/inputs/

the number input - default Input and not Material number input. Another problem with this input is, that if you use it within a tag, the '+' - Button does not work on mobile devices - instead of increasing the number, it submits the form. The '-' button does not.

Thanks in advance, belu


Mateusz Łubianka staff answered 5 years ago

We do not have this option for this type of input. On the second problem: please, create a snippet showing your problem here: https://mdbootstrap.com/snippets/. I'll try to help you.

Best,


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
  • User: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.13.0
  • Device: all
  • Browser: all
  • OS: all
  • Provided sample code: No
  • Provided link: No