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

web
mobile

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

belu pro asked 2 months 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 2 months ago

Hi @belu,

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

Best,


belu pro commented 2 months 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 1 months 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.
Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: jQuery
  • MDB Version: 4.13.0
  • Device: all
  • Browser: all
  • OS: all
  • Provided sample code: No
  • Provided link: No