Page 1 of 1

Add object's attribute

Posted: Sun Dec 12, 2021 5:15 am
by miasoft
I updated NU from GitHub and tried to use the attribute autocapitalize="words", but it doesn't work. Attribute "placeholder=..." works fine.
autocapitalize

The autocapitalize attribute specifies that the text entered by the user should be automatically capitalized. The autocapitalize attribute is a global attribute that can be applied to any tag.

CODE: SELECT ALL
autocapitalize="words"

Re: Add object's sttribute

Posted: Sun Dec 12, 2021 6:25 am
by kev1n
Hi,

The autocapitalize attribute doesn’t affect behavior when typing on a physical keyboard. Instead, it affects the behavior of other input mechanisms, such as virtual keyboards on mobile devices and voice input.

You would have to resort to JS to achieve that.

Re: Add object's sttribute

Posted: Sun Dec 12, 2021 7:36 am
by kev1n
Example to capitalise the first letter of all words:
totitlecase.jpg

Code: Select all

this.value = this.value.toTitleCase();