jack jack - 5 years ago 97
HTML Question

How to make a textbox not type the first letter as a capital

Hi I have made a website with JavaScript and html were you type something into a textbox and it responds to you but when on an iOS device it is always making the first letter a capital and not recognizing the word. this has become very difficult. I have looked everywhere to find what I need and have come here as a last resort. I need some code to make the capital button not come up or make the text I write into the box be recognized if it has capitals or not. if you need any code to help please tell me and ill update it immediately with the code you need. I hope I can fix this problem.

Answer Source

This is what I would do:

<input id="myText" type="text" onkeyup="myFunction()">

function myFunction(){
    document.getElementById("myText").value = document.getElementById("myText").value.toLowerCase();
}

Here is the JSFiddle demo

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download