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"
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Add object's attribute
-
- Posts: 156
- Joined: Wed Dec 23, 2020 12:28 pm
- Location: Russia, Volgograd
- Has thanked: 32 times
- Been thanked: 7 times
- Contact:
Add object's attribute
I updated NU from GitHub and tried to use the attribute autocapitalize="words", but it doesn't work. Attribute "placeholder=..." works fine.
Last edited by miasoft on Mon Dec 13, 2021 4:45 am, edited 1 time in total.
Wbr, miasoft.
-
- nuBuilder Team
- Posts: 4305
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: Add object's sttribute
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.
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.
-
- nuBuilder Team
- Posts: 4305
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: Add object's sttribute
Example to capitalise the first letter of all words:
Code: Select all
this.value = this.value.toTitleCase();
You do not have the required permissions to view the files attached to this post.